File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,8 @@ def testInvalidTargets(self):
111111
112112 # test a nonexistent channel
113113 self .sendLine (bar , "CHATHISTORY LATEST #nonexistent_channel * 10" )
114- msgs = self .getMessages (bar )
114+ while not (msgs := self .getMessages (bar )):
115+ pass
115116 msgs = [msg for msg in msgs if msg .command != "MODE" ] # :NickServ MODE +r
116117 self .assertMessageMatch (
117118 msgs [0 ],
@@ -121,7 +122,8 @@ def testInvalidTargets(self):
121122
122123 # as should a real channel to which one is not joined:
123124 self .sendLine (bar , "CHATHISTORY LATEST %s * 10" % (real_chname ,))
124- msgs = self .getMessages (bar )
125+ while not (msgs := self .getMessages (bar )):
126+ pass
125127 self .assertMessageMatch (
126128 msgs [0 ],
127129 command = "FAIL" ,
You can’t perform that action at this time.
0 commit comments