Skip to content

Commit

Permalink
Another workaround for Sable's latency with the history server
Browse files Browse the repository at this point in the history
  • Loading branch information
progval committed Oct 28, 2024
1 parent f350ff0 commit 11b08a2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions irctest/server_tests/chathistory.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ def testInvalidTargets(self):

# test a nonexistent channel
self.sendLine(bar, "CHATHISTORY LATEST #nonexistent_channel * 10")
msgs = self.getMessages(bar)
while not (msgs := self.getMessages(bar)):
pass
msgs = [msg for msg in msgs if msg.command != "MODE"] # :NickServ MODE +r
self.assertMessageMatch(
msgs[0],
Expand All @@ -121,7 +122,8 @@ def testInvalidTargets(self):

# as should a real channel to which one is not joined:
self.sendLine(bar, "CHATHISTORY LATEST %s * 10" % (real_chname,))
msgs = self.getMessages(bar)
while not (msgs := self.getMessages(bar)):
pass
self.assertMessageMatch(
msgs[0],
command="FAIL",
Expand Down

0 comments on commit 11b08a2

Please sign in to comment.