Fix a misuse of assertGreaterEqual
In a notification sample functional test, there is a misuse of assertGreaterEqual. At least 6 notifications are expected, So the order of the arguments should be reversed. Change-Id: I865c215a13fa3bb72e191382187ea8368885846f Closes-Bug: #1843885
This commit is contained in:
parent
db5caf2ff8
commit
4e0e0a6dd2
|
@ -313,7 +313,7 @@ class TestInstanceNotificationSampleWithMultipleCompute(
|
|||
# 3. instance.live_migration_pre.end
|
||||
# 4. instance.live_migration_force_complete.start
|
||||
# 5. instance.live_migration_force_complete.end
|
||||
self.assertGreaterEqual(6, len(fake_notifier.VERSIONED_NOTIFICATIONS),
|
||||
self.assertGreaterEqual(len(fake_notifier.VERSIONED_NOTIFICATIONS), 6,
|
||||
fake_notifier.VERSIONED_NOTIFICATIONS)
|
||||
self._verify_notification(
|
||||
'instance-live_migration_force_complete-start',
|
||||
|
|
Loading…
Reference in New Issue