Skip to content

Commit 5dc09f8

Browse files
committed
Update system tests for proper multi-use snapshot semantics.
1 parent 8244af9 commit 5dc09f8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spanner/tests/system/test_system.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ def test_read_w_ranges(self):
828828
START = 1000
829829
END = 2000
830830
session, committed = self._set_up_table(ROW_COUNT)
831-
snapshot = session.snapshot(read_timestamp=committed)
831+
snapshot = session.snapshot(read_timestamp=committed, multi_use=True)
832832
all_data_rows = list(self._row_data(ROW_COUNT))
833833

834834
closed_closed = KeyRange(start_closed=[START], end_closed=[END])
@@ -934,7 +934,8 @@ def test_execute_sql_w_query_param(self):
934934
self.ALL_TYPES_COLUMNS,
935935
self.ALL_TYPES_ROWDATA)
936936

937-
snapshot = session.snapshot(read_timestamp=batch.committed)
937+
snapshot = session.snapshot(
938+
read_timestamp=batch.committed, multi_use=True)
938939

939940
# Cannot equality-test array values. See below for a test w/
940941
# array of IDs.

0 commit comments

Comments
 (0)