mirror of
https://github.com/progval/irctest.git
synced 2025-04-05 14:59:49 +00:00
testStatusmsgFromOp: Fix interleaved events causing the test to be flaky.
This commit is contained in:
@ -27,9 +27,6 @@ class StatusmsgTestCase(cases.BaseServerTestCase):
|
||||
self.connectClient("schmoe")
|
||||
self.sendLine(3, "join #chan")
|
||||
|
||||
self.sendLine(1, "MODE #chan +o schmoe")
|
||||
self.getMessages(1)
|
||||
|
||||
messages = self.getMessages(3)
|
||||
names = set()
|
||||
for message in messages:
|
||||
@ -40,6 +37,9 @@ class StatusmsgTestCase(cases.BaseServerTestCase):
|
||||
names, {"@chanop", "joe", "schmoe"}, f"unexpected names: {names}"
|
||||
)
|
||||
|
||||
self.sendLine(1, "MODE #chan +o schmoe")
|
||||
self.getMessages(1)
|
||||
|
||||
self.getMessages(3)
|
||||
self.sendLine(3, "privmsg @#chan :this message is for operators")
|
||||
self.assertEqual(
|
||||
|
Reference in New Issue
Block a user