<commit_before>package test

import (
	"testing"
	"time"

	"github.com/b2aio/typhon/server"
)

// InitServer for testing
func InitServer(t *testing.T, name string) server.Server {
	// Initialize our Server
	server.Init(&server.Config{
		Name:        name,
		Description: "Example service",
	})

	go server.Run()

	select {
	case <-server.NotifyConnected():
	case <-time.After(1 * time.Second):
		t.Fatalf("StubServer couldn't connect to RabbitMQ")
	}

	return server.DefaultServer
}<commit_msg>Fix error logging in test<commit_after>package test

import (
	"testing"
	"time"

	"github.com/b2aio/typhon/server"
)

// InitServer for testing
func InitServer(t *testing.T, name string) server.Server {
	// Initialize our Server
	server.Init(&server.Config{
		Name:        name,
		Description: "Example service",
	})

	go server.Run()

	select {
	case <-server.NotifyConnected():
	case <-time.After(1 * time.Second):
		t.Fatalf("Test Server couldn't connect to RabbitMQ")
	}

	return server.DefaultServer
}
{'fraction_non_alphanumeric': 0.13186813186813187, 'fraction_numerical': 0.003996003996003996, 'mean_word_length': 3.911764705882353, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5236842', 'n_tokens_mistral': 359, 'n_tokens_neox': 334, 'n_words': 83}