mirror of
https://github.com/progval/irctest.git
synced 2025-04-07 15:59:49 +00:00
fix LUSERS tests to work with oragono
This commit is contained in:
committed by
Valentin Lorentz
parent
c2ed9ca79f
commit
10edb9dd9d
@ -35,6 +35,8 @@ class ClientMock:
|
|||||||
if synchronize:
|
if synchronize:
|
||||||
token = "synchronize{}".format(time.monotonic())
|
token = "synchronize{}".format(time.monotonic())
|
||||||
self.sendLine("PING {}".format(token))
|
self.sendLine("PING {}".format(token))
|
||||||
|
else:
|
||||||
|
token = None
|
||||||
got_pong = False
|
got_pong = False
|
||||||
data = b""
|
data = b""
|
||||||
(self.inbuffer, messages) = ([], self.inbuffer)
|
(self.inbuffer, messages) = ([], self.inbuffer)
|
||||||
|
@ -132,7 +132,7 @@ class LusersUnregisteredTestCase(LusersTestCase):
|
|||||||
|
|
||||||
def _synchronize(self, client_name):
|
def _synchronize(self, client_name):
|
||||||
"""Synchronizes using a PING, but accept ERR_NOTREGISTERED as a response."""
|
"""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):
|
for _ in range(1000):
|
||||||
msg = self.getRegistrationMessage(client_name)
|
msg = self.getRegistrationMessage(client_name)
|
||||||
if msg.command in (ERR_NOTREGISTERED, "PONG"):
|
if msg.command in (ERR_NOTREGISTERED, "PONG"):
|
||||||
|
Reference in New Issue
Block a user