We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d4a8ef commit 54c6b73Copy full SHA for 54c6b73
tests/catalog/test_hive.py
@@ -1314,8 +1314,8 @@ def test_hive_wait_for_lock() -> None:
1314
assert catalog._client.check_lock.call_count == 3
1315
1316
# lock wait should exit with WaitingForLockException finally after enough retries
1317
+ catalog._client.check_lock.reset_mock()
1318
catalog._client.check_lock.side_effect = [waiting for _ in range(10)]
- catalog._client.check_lock.call_count = 0
1319
with pytest.raises(WaitingForLockException):
1320
catalog._wait_for_lock("db", "tbl", lockid, catalog._client)
1321
assert catalog._client.check_lock.call_count == 5
0 commit comments