Skip to content
This repository was archived by the owner on Nov 26, 2018. It is now read-only.

Commit 8035acc

Browse files
committed
Fix tests
1 parent f80ea09 commit 8035acc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

main_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,12 @@ func TestBotBotIRC(t *testing.T) {
7070

7171
// Check IRC server expectations
7272

73-
if server.GotLength() != 6 {
74-
t.Fatal("Expected exactly 6 IRC messages from the bot. Got ", server.GotLength())
73+
if server.GotLength() != 7 {
74+
t.Fatal("Expected exactly 7 IRC messages from the bot. Got ", server.GotLength())
7575
}
7676

7777
glog.Infoln("[Debug] server.Got", server.Got)
78-
expect := []string{"PING", "USER", "NICK", "NickServ", "JOIN", "PRIVMSG"}
78+
expect := []string{"PING", "CAP", "USER", "NICK", "NickServ", "JOIN", "PRIVMSG"}
7979
for i := 0; i < 5; i++ {
8080
if !strings.Contains(string(server.Got[i]), expect[i]) {
8181
t.Error("Line ", i, " did not contain ", expect[i], ". It is: ", server.Got[i])

0 commit comments

Comments
 (0)