Skip to content

Commit bad9abe

Browse files
committed
Small change
1 parent 86db58a commit bad9abe

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

google/cloud/spanner_v1/testing/interceptors.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ def intercept(self, method, request_or_iterator, call_details):
4949
self._count += 1
5050
if self._connection is not None:
5151
self._connection._transaction.rollback()
52-
self._connection._transaction.rolled_back = False
5352
raise Aborted("Thrown from ClientInterceptor for testing")
5453
return method(request_or_iterator, call_details)
5554

tests/system/test_dbapi.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,6 @@ def test_read_timestamp_client_side_autocommit(self):
445445
assert self._cursor.description[0].name == "SHOW_READ_TIMESTAMP"
446446
assert isinstance(read_timestamp_query_result_1[0][0], DatetimeWithNanoseconds)
447447

448-
time.sleep(0.25)
449448
self._cursor.execute("SELECT * FROM contacts")
450449
self._cursor.execute("SHOW VARIABLE READ_TIMESTAMP")
451450
read_timestamp_query_result_2 = self._cursor.fetchall()
@@ -627,7 +626,7 @@ def test_commit_abort_retry(self, dbapi_database):
627626
got_rows = self._cursor.fetchall()
628627
assert len(got_rows) == 5
629628

630-
def test_retry_aborted(self, shared_instance, dbapi_database):
629+
def test_retry_aborted_exception(self, shared_instance, dbapi_database):
631630
"""Test that retry fails with RetryAborted error when rows are updated during retry."""
632631

633632
conn1 = Connection(shared_instance, dbapi_database)

0 commit comments

Comments
 (0)