Skip to content

Commit 2d7cbbe

Browse files
swap assertion order
1 parent 06aca53 commit 2d7cbbe

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/integrations/rust_tracing/test_rust_tracing.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -226,14 +226,14 @@ def test_nested_on_new_span_on_close(
226226
assert second_span["end_timestamp"] is not None
227227

228228
# Ensure the extra data from Rust is hooked up in both spans
229-
first_span_data = second_span["attributes"]
229+
first_span_data = first_span["attributes"]
230230
assert first_span_data["use_memoized"]
231-
assert first_span_data["index"] == 10
231+
assert first_span_data["index"] == 9
232232
assert first_span_data["version"] == "None"
233233

234-
second_span_data = first_span["attributes"]
234+
second_span_data = second_span["attributes"]
235235
assert second_span_data["use_memoized"]
236-
assert second_span_data["index"] == 9
236+
assert second_span_data["index"] == 10
237237
assert second_span_data["version"] == "None"
238238
else:
239239
events = capture_events()

0 commit comments

Comments
 (0)