Browse Source

Tests: Don't assert notifier not called

This doesn't work reliably -- it could be
made to, but just skip this check for now
to prevent spurious failures.

Related-Bug: #1803648

Change-Id: I8b67cc2d9a51f777a245739299e4bc44a7d0733b
(cherry picked from commit 9f0be99946)
changes/71/785971/1
Eric Harney 2 months ago
parent
commit
ba8d19822b
1 changed files with 1 additions and 4 deletions
  1. +1
    -4
      cinder/tests/unit/volume/test_volume.py

+ 1
- 4
cinder/tests/unit/volume/test_volume.py View File

@ -253,7 +253,7 @@ class VolumeTestCase(base.BaseVolumeTestCase):
volume_id = volume['id']
self.assertIsNone(volume['encryption_key_id'])
mock_notify.assert_not_called()
self.assertRaises(exception.DriverNotInitialized,
self.volume.create_volume, self.context, volume)
@ -336,7 +336,6 @@ class VolumeTestCase(base.BaseVolumeTestCase):
**self.volume_params)
self.assertIsNone(volume['encryption_key_id'])
mock_notify.assert_not_called()
self.assertRaises(exception.DriverNotInitialized,
self.volume.delete_volume, self.context, volume)
@ -356,8 +355,6 @@ class VolumeTestCase(base.BaseVolumeTestCase):
**self.volume_params)
volume_id = volume['id']
mock_notify.assert_not_called()
self.assertIsNone(volume['encryption_key_id'])
self.volume.create_volume(self.context, volume)


Loading…
Cancel
Save