Fix channel deterministic joining s'more

This commit is contained in:
Daniel Oaks 2017-11-01 17:42:44 +00:00
parent e4c3490787
commit 754f9ad250
2 changed files with 2 additions and 2 deletions

View File

@ -378,7 +378,7 @@ class BaseServerTestCase(_IrcTestCase):
# wait until we see them join the channel
joined = False
while not joined:
for msg in self.getMessages(1):
for msg in self.getMessages(client):
# todo: also respond to cannot join channel numeric
if msg.command.upper() == 'JOIN' and 0 < len(msg.params) and msg.params[0].lower() == channel.lower():
joined = True

View File

@ -48,8 +48,8 @@ class MetadataTestCase(cases.BaseServerTestCase, cases.OptionalityHelper):
self.controller.registerUser(self, 'jilles', 'sesame')
self.connectRegisteredClient('bar')
self.joinChannel(2, '#chan')
self.sendLine(2, 'JOIN #chan')
m = self.getMessage(1)
self.assertMessageEqual(m, command='JOIN',
params=['#chan', 'jilles', 'Realname'],