Skip to content

Commit b559d93

Browse files
committed
Be sure we don't call patch when we raise
1 parent 047f34e commit b559d93

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

azimuth_caas_operator/tests/utils/test_lease.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ async def test_release_lease_waits_for_other_finalizers(self):
173173
with self.assertRaises(kopf.TemporaryError) as ctx:
174174
await lease.release_lease(mock_client, cluster)
175175

176+
mock_resource.patch.assert_not_awaited()
176177
self.assertEqual(
177178
"Waiting for other finalizers to be dropped.",
178179
str(ctx.exception),

0 commit comments

Comments
 (0)