summaryrefslogtreecommitdiffstats
path: root/irc/irc_test.go
diff options
context:
space:
mode:
authorRobert Gerus <arachnist@i.am-a.cat>2015-12-12 12:35:49 +0100
committerRobert Gerus <arachnist@i.am-a.cat>2015-12-12 12:35:49 +0100
commitbc36369497181c4f5165c04bc30a32b55203cca9 (patch)
tree2267507096c0153bb0ad4f5a757a393477c69c30 /irc/irc_test.go
parent6bc3f2fdd4b18106b0fccd37e5df9303e054bc09 (diff)
downloadgorepost-bc36369497181c4f5165c04bc30a32b55203cca9.tar.gz
gorepost-bc36369497181c4f5165c04bc30a32b55203cca9.tar.bz2
gorepost-bc36369497181c4f5165c04bc30a32b55203cca9.tar.xz
gorepost-bc36369497181c4f5165c04bc30a32b55203cca9.zip
Adjust irc package to changes in config.
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())
}