summaryrefslogtreecommitdiffstats
path: root/irc/irc_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'irc/irc_test.go')
-rw-r--r--irc/irc_test.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/irc/irc_test.go b/irc/irc_test.go
index a6cad81..0a5dadf 100644
--- a/irc/irc_test.go
+++ b/irc/irc_test.go
@@ -17,7 +17,7 @@ import (
"testing"
"time"
- cfg "github.com/arachnist/gorepost/config"
+ "github.com/arachnist/gorepost/config"
)
var expectedOutput = []Message{
@@ -105,7 +105,7 @@ func TestSetup(t *testing.T) {
go fakeServer(t)
var conn Connection
- conn.Setup(fakeDispatcher, "TestNet")
+ conn.Setup(fakeDispatcher, "TestNet", config.New(configLookupHelper))
time.Sleep(2 * time.Second)
@@ -148,7 +148,6 @@ func configLookupHelper(map[string]string) []string {
}
func TestMain(m *testing.M) {
- cfg.SetFileListBuilder(configLookupHelper)
log.SetOutput(ioutil.Discard)
os.Exit(m.Run())
}