mirror of
https://github.com/progval/irctest.git
synced 2025-04-05 23:09:48 +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.connectClient("schmoe")
|
||||||
self.sendLine(3, "join #chan")
|
self.sendLine(3, "join #chan")
|
||||||
|
|
||||||
self.sendLine(1, "MODE #chan +o schmoe")
|
|
||||||
self.getMessages(1)
|
|
||||||
|
|
||||||
messages = self.getMessages(3)
|
messages = self.getMessages(3)
|
||||||
names = set()
|
names = set()
|
||||||
for message in messages:
|
for message in messages:
|
||||||
@ -40,6 +37,9 @@ class StatusmsgTestCase(cases.BaseServerTestCase):
|
|||||||
names, {"@chanop", "joe", "schmoe"}, f"unexpected names: {names}"
|
names, {"@chanop", "joe", "schmoe"}, f"unexpected names: {names}"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
self.sendLine(1, "MODE #chan +o schmoe")
|
||||||
|
self.getMessages(1)
|
||||||
|
|
||||||
self.getMessages(3)
|
self.getMessages(3)
|
||||||
self.sendLine(3, "privmsg @#chan :this message is for operators")
|
self.sendLine(3, "privmsg @#chan :this message is for operators")
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
|
Reference in New Issue
Block a user