From a9e0de4896038b70bddaec9472d21b4f6c032587 Mon Sep 17 00:00:00 2001 From: Daniel Oaks Date: Tue, 26 Dec 2017 12:56:17 +1000 Subject: [PATCH] Make message tests less fragile --- irctest/server_tests/test_messages.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/irctest/server_tests/test_messages.py b/irctest/server_tests/test_messages.py index d8e705d..90bec42 100644 --- a/irctest/server_tests/test_messages.py +++ b/irctest/server_tests/test_messages.py @@ -17,6 +17,7 @@ class PrivmsgTestCase(cases.BaseServerTestCase): self.sendLine(1, 'JOIN #chan') self.connectClient('bar') self.sendLine(2, 'JOIN #chan') + self.getMessages(2) # synchronize self.sendLine(1, 'PRIVMSG #chan :hello there') self.getMessages(1) # synchronize pms = [msg for msg in self.getMessages(2) if msg.command == 'PRIVMSG'] @@ -44,6 +45,7 @@ class NoticeTestCase(cases.BaseServerTestCase): self.sendLine(1, 'JOIN #chan') self.connectClient('bar') self.sendLine(2, 'JOIN #chan') + self.getMessages(2) # synchronize self.sendLine(1, 'NOTICE #chan :hello there') self.getMessages(1) # synchronize notices = [msg for msg in self.getMessages(2) if msg.command == 'NOTICE']