There was an error while loading. Please reload this page.
1 parent 2236259 commit 7072f70Copy full SHA for 7072f70
host_test.go
@@ -182,21 +182,6 @@ func TestMotdCommand(t *testing.T) {
182
t.Error("failed to hinder non-OPs to modify the MOTD")
183
}
184
185
-// Test as OP - expected behaviour: should modify the MOTD
186
-host.Room.Ops.Add(member)
187
-testMotd = "barfoo"
188
-w.Write([]byte("/motd barfoo\r\n"))
189
-
190
-// Fix this during the code-review process
191
-time.Sleep(time.Millisecond * 500)
192
193
-if strings.Compare(host.motd, testMotd) != 0 {
194
-t.Error("failed to allow OPs to modify the MOTD")
195
-}
196
197
-// Get around rate limitation
198
-time.Sleep(time.Second * 3)
199
200
// Test as OP - expected behaviour: should print the MOTD even if OP
201
w.Write([]byte("/motd\r\n"))
202
0 commit comments