Skip to content

Commit 2be808e

Browse files
committed
fix flaky test
1 parent 164524d commit 2be808e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/google-cloud-spanner/tests/unit/test_batch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def test_aborted_exception_on_commit_with_retries(self, mock_region):
310310

311311
# Assertion: Ensure that calling batch.commit() raises Aborted
312312
with self.assertRaises(Aborted) as context:
313-
batch.commit(timeout_secs=0.1, default_retry_delay=0)
313+
batch.commit(timeout_secs=1.0, default_retry_delay=0)
314314

315315
# Verify exception includes request_id attribute
316316
self.assertIn("409 Transaction was aborted", str(context.exception))

0 commit comments

Comments
 (0)