From ba8d19822b2212263934ec7ffe0bf2fb56b6c863 Mon Sep 17 00:00:00 2001 From: Eric Harney Date: Thu, 4 Mar 2021 10:32:30 -0500 Subject: [PATCH] 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 9f0be9994631fa2792f86dd27ffe539b8acbc686) --- cinder/tests/unit/volume/test_volume.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cinder/tests/unit/volume/test_volume.py b/cinder/tests/unit/volume/test_volume.py index d1517278c4e..df837ceed15 100644 --- a/cinder/tests/unit/volume/test_volume.py +++ b/cinder/tests/unit/volume/test_volume.py @@ -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)