Skip to content

Commit 46e6f9b

Browse files
committed
.
1 parent 541a83d commit 46e6f9b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/test_api.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,7 @@ def test_baggage_with_tracing_enabled(sentry_init):
9797
with mock.patch("sentry_sdk.tracing_utils.Random.uniform", return_value=0.123456):
9898
with start_span(name="foo") as span:
9999
expected_baggage = SortedBaggage(
100-
"sentry-transaction=foo,sentry-trace_id={},sentry-sample_rand=0.123456,sentry-environment=dev,sentry-release=1.0.0,sentry-sample_rate=1.0,sentry-sampled={}".format(
101-
span.trace_id, "true" if span.sampled else "false"
102-
)
100+
f"sentry-transaction=foo,sentry-trace_id={span.trace_id},sentry-sample_rand=0.123456,sentry-environment=dev,sentry-release=1.0.0,sentry-sample_rate=1.0,sentry-sampled=true"
103101
)
104102
assert expected_baggage == get_baggage()
105103

0 commit comments

Comments
 (0)