Skip to content

Commit 7072f70

Browse files
author
Aaron
committed
Remove redundant motd test
1 parent 2236259 commit 7072f70

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

host_test.go

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -182,21 +182,6 @@ func TestMotdCommand(t *testing.T) {
182182
t.Error("failed to hinder non-OPs to modify the MOTD")
183183
}
184184

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-
200185
// Test as OP - expected behaviour: should print the MOTD even if OP
201186
w.Write([]byte("/motd\r\n"))
202187

0 commit comments

Comments
 (0)