Skip to content

Commit

Permalink
fix LUSERS tests to work with oragono
Browse files Browse the repository at this point in the history
  • Loading branch information
slingamn authored and progval committed Feb 22, 2021
1 parent c2ed9ca commit 10edb9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions irctest/client_mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ def getMessages(self, synchronize=True, assert_get_one=False, raw=False):
if synchronize:
token = "synchronize{}".format(time.monotonic())
self.sendLine("PING {}".format(token))
else:
token = None
got_pong = False
data = b""
(self.inbuffer, messages) = ([], self.inbuffer)
Expand Down
2 changes: 1 addition & 1 deletion irctest/server_tests/test_lusers.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def testLusers(self):

def _synchronize(self, client_name):
"""Synchronizes using a PING, but accept ERR_NOTREGISTERED as a response."""
self.sendLine(client_name, "PING")
self.sendLine(client_name, "PING PARAM")
for _ in range(1000):
msg = self.getRegistrationMessage(client_name)
if msg.command in (ERR_NOTREGISTERED, "PONG"):
Expand Down

0 comments on commit 10edb9d

Please sign in to comment.