File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,9 @@ 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+ # need to retry when Sable has the history server on
116+ pass
115117 msgs = [msg for msg in msgs if msg .command != "MODE" ] # :NickServ MODE +r
116118 self .assertMessageMatch (
117119 msgs [0 ],
@@ -121,7 +123,9 @@ def testInvalidTargets(self):
121123
122124 # as should a real channel to which one is not joined:
123125 self .sendLine (bar , "CHATHISTORY LATEST %s * 10" % (real_chname ,))
124- msgs = self .getMessages (bar )
126+ while not (msgs := self .getMessages (bar )):
127+ # need to retry when Sable has the history server on
128+ pass
125129 self .assertMessageMatch (
126130 msgs [0 ],
127131 command = "FAIL" ,
You can’t perform that action at this time.
0 commit comments