X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=room_test.go;h=58f4158b9a7b22ce896da23b38922001c72ae2fe;hb=491e6602aa27f2266c8bc2c6d009b8cd658f440e;hp=342e58ceecb121a162b2046b2b4065f50bdfd408;hpb=e657ffd2ab2cd5fae8c1d19e39b2268fa758153e;p=goircd.git diff --git a/room_test.go b/room_test.go index 342e58c..58f4158 100644 --- a/room_test.go +++ b/room_test.go @@ -1,6 +1,6 @@ /* goircd -- minimalistic simple Internet Relay Chat (IRC) server -Copyright (C) 2014-2015 Sergey Matveev +Copyright (C) 2014-2016 Sergey Matveev This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -222,7 +222,7 @@ func TestJoin(t *testing.T) { if r := <-conn.outbound; r != ":nick2!foo2@someclient MODE #barenc -k\r\n" { t.Fatal("remove #barenc key", r) } - if rooms["#barenc"].key != nil { + if *rooms["#barenc"].key != "" { t.Fatal("removing key from #barenc") } if r := <-logSink; (r.what != "removed channel key") || (r.where != "#barenc") || (r.who != "nick2") || (r.meta != true) {