mirror of
https://github.com/progval/irctest.git
synced 2025-04-04 22:39:50 +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')
|
||||
while case.getRegistrationMessage(client).command != '001':
|
||||
pass
|
||||
list(case.getMessages(client))
|
||||
case.getMessages(client)
|
||||
case.sendLine(client, 'ACC REGISTER {} * {}'.format(
|
||||
username, password))
|
||||
msg = case.getMessage(client)
|
||||
assert msg.command == '920', msg
|
||||
list(case.getMessages(client))
|
||||
case.removeClient(client)
|
||||
case.sendLine(client, 'QUIT')
|
||||
case.assertDisconnected(client)
|
||||
|
||||
def get_irctest_controller_class():
|
||||
return OragonoController
|
||||
|
Reference in New Issue
Block a user