mirror of
https://github.com/progval/irctest.git
synced 2025-04-06 07:19:54 +00:00
deflake registration tests by waiting for quit
This commit is contained in:
@ -132,13 +132,13 @@ class OragonoController(BaseServerController, DirectoryBasedController):
|
|||||||
case.sendLine(client, 'CAP END')
|
case.sendLine(client, 'CAP END')
|
||||||
while case.getRegistrationMessage(client).command != '001':
|
while case.getRegistrationMessage(client).command != '001':
|
||||||
pass
|
pass
|
||||||
list(case.getMessages(client))
|
case.getMessages(client)
|
||||||
case.sendLine(client, 'ACC REGISTER {} * {}'.format(
|
case.sendLine(client, 'ACC REGISTER {} * {}'.format(
|
||||||
username, password))
|
username, password))
|
||||||
msg = case.getMessage(client)
|
msg = case.getMessage(client)
|
||||||
assert msg.command == '920', msg
|
assert msg.command == '920', msg
|
||||||
list(case.getMessages(client))
|
case.sendLine(client, 'QUIT')
|
||||||
case.removeClient(client)
|
case.assertDisconnected(client)
|
||||||
|
|
||||||
def get_irctest_controller_class():
|
def get_irctest_controller_class():
|
||||||
return OragonoController
|
return OragonoController
|
||||||
|
Reference in New Issue
Block a user