Skip to content

Commit 11b08a2

Browse files
committed
Another workaround for Sable's latency with the history server
1 parent f350ff0 commit 11b08a2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

irctest/server_tests/chathistory.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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",

0 commit comments

Comments
 (0)