Skip to content
This repository was archived by the owner on Mar 31, 2026. It is now read-only.

Commit 0c26efc

Browse files
1 parent 446cc46 commit 0c26efc

File tree

2 files changed

+26
-29
lines changed

2 files changed

+26
-29
lines changed

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def unit(session, protobuf_implementation):
227227
"--cov-config=.coveragerc",
228228
"--cov-report=",
229229
"--cov-fail-under=0",
230-
#os.path.join("tests", "unit"),
230+
# os.path.join("tests", "unit"),
231231
*session.posargs,
232232
env={
233233
"PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION": protobuf_implementation,

tests/unit/test_spanner.py

Lines changed: 25 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,37 +1072,34 @@ def test_transaction_for_concurrent_statement_should_begin_one_transaction_with_
10721072

10731073
self.assertEqual(api.execute_batch_dml.call_count, 2)
10741074
a = mock.call(
1075-
request=self._batch_update_expected_request(),
1076-
metadata=[
1077-
("google-cloud-resource-prefix", database.name),
1078-
("x-goog-spanner-route-to-leader", "true"),
1079-
(
1080-
"x-goog-spanner-request-id",
1081-
f"1.{REQ_RAND_PROCESS_ID}.{database._nth_client_id}.{database._channel_id}.1.1",
1082-
),
1083-
],
1084-
retry=RETRY,
1085-
timeout=TIMEOUT,
1086-
)
1075+
request=self._batch_update_expected_request(),
1076+
metadata=[
1077+
("google-cloud-resource-prefix", database.name),
1078+
("x-goog-spanner-route-to-leader", "true"),
1079+
(
1080+
"x-goog-spanner-request-id",
1081+
f"1.{REQ_RAND_PROCESS_ID}.{database._nth_client_id}.{database._channel_id}.1.1",
1082+
),
1083+
],
1084+
retry=RETRY,
1085+
timeout=TIMEOUT,
1086+
)
10871087
b = mock.call(
1088-
request=self._batch_update_expected_request(begin=False),
1089-
metadata=[
1090-
("google-cloud-resource-prefix", database.name),
1091-
("x-goog-spanner-route-to-leader", "true"),
1092-
(
1093-
"x-goog-spanner-request-id",
1094-
f"1.{REQ_RAND_PROCESS_ID}.{database._nth_client_id}.{database._channel_id}.2.1",
1095-
),
1096-
],
1097-
retry=RETRY,
1098-
timeout=TIMEOUT,
1099-
)
1088+
request=self._batch_update_expected_request(begin=False),
1089+
metadata=[
1090+
("google-cloud-resource-prefix", database.name),
1091+
("x-goog-spanner-route-to-leader", "true"),
1092+
(
1093+
"x-goog-spanner-request-id",
1094+
f"1.{REQ_RAND_PROCESS_ID}.{database._nth_client_id}.{database._channel_id}.2.1",
1095+
),
1096+
],
1097+
retry=RETRY,
1098+
timeout=TIMEOUT,
1099+
)
11001100
print("A: ", a)
11011101
print("B: ", b)
1102-
1103-
1104-
1105-
1102+
11061103
self.assertEqual(
11071104
api.execute_batch_dml.call_args_list,
11081105
[

0 commit comments

Comments
 (0)