Make ZaqarEventSinkTest more lenient

We don't have strong ordering of events enforced, so there is no need to
test that events arrive in order, and it actually make tests fail
intermittently. Let's relax that check.

Change-Id: I73be763df5ddf863e29df1b9ac8792f05700e006
Closes-Bug: #1549264
This commit is contained in:
Thomas Herve 2016-02-24 13:08:06 +01:00
parent c3c87b893f
commit fe511a958c
1 changed files with 2 additions and 1 deletions

View File

@ -59,7 +59,8 @@ resources:
stack_ids = [m.body['payload']['stack_id'] for m in messages]
self.assertEqual([stack_id] * 4, stack_ids)
statuses = [m.body['payload']['resource_status'] for m in messages]
statuses.sort()
self.assertEqual(
['IN_PROGRESS', 'IN_PROGRESS', 'COMPLETE', 'COMPLETE'], statuses)
['COMPLETE', 'COMPLETE', 'IN_PROGRESS', 'IN_PROGRESS'], statuses)
actions = [m.body['payload']['resource_action'] for m in messages]
self.assertEqual(['CREATE'] * 4, actions)