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