We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7654753 commit 15a0a34Copy full SHA for 15a0a34
1 file changed
packages/google-cloud-spanner/tests/system/test_session_api.py
@@ -1432,7 +1432,17 @@ def unit_of_work(transaction):
1432
"CloudSpanner.DMLTransaction",
1433
"CloudSpanner.Transaction.commit",
1434
]
1435
- assert got_span_names == expected_span_names
+
1436
+ prefix_len = 4
1437
+ assert got_span_names[:prefix_len] == expected_span_names[:prefix_len]
1438
+ remaining = got_span_names[prefix_len:]
1439
+ assert len(remaining) >= 2
1440
+ for name in remaining:
1441
+ assert name in [
1442
+ "CloudSpanner.DMLTransaction",
1443
+ "CloudSpanner.Transaction.commit",
1444
+ ]
1445
+ assert remaining[-1] == "CloudSpanner.Transaction.commit"
1446
1447
# We expect:
1448
# |------CloudSpanner.CreateSession--------
0 commit comments