Adjust get_roster to always return, even with invalid JIDs

Issue #245
This commit is contained in:
Lance Stout
2013-06-29 22:33:00 -07:00
parent 669e708b70
commit cedc9dd175
2 changed files with 17 additions and 8 deletions

View File

@@ -49,6 +49,9 @@ class TestStreamRoster(SleekTest):
# Wait for get_roster to return.
t.join()
# Give the event queue time to process.
time.sleep(.1)
self.check_roster('tester@localhost', 'user@localhost',
name='User',
subscription='from',
@@ -56,9 +59,6 @@ class TestStreamRoster(SleekTest):
pending_out=True,
groups=['Friends', 'Examples'])
# Give the event queue time to process.
time.sleep(.1)
self.failUnless(len(roster_updates) == 1,
"Wrong number of roster_update events fired: %s (should be 1)" % len(roster_updates))