Skip to content

Commit 48c0d44

Browse files
committed
fix: Remove nullable annotations from test file
The test project does not have nullable reference types enabled, so string? and BaggageHeader? annotations cause CS8632 errors.
1 parent 834b84d commit 48c0d44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/Sentry.Tests/SentryPropagationContextTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ public void CreateFromHeaders_BaggageHeaderNotNull_CreatesPropagationContextWith
177177
[InlineData("1", null, true, false)] // SDK missing → new trace
178178
[InlineData(null, null, true, true)] // both missing → continue
179179
[InlineData("1", "2", true, false)] // mismatch → new trace
180-
public void ShouldContinueTrace_DecisionMatrix(string? baggageOrgId, string? sdkOrgId, bool strict, bool expected)
180+
public void ShouldContinueTrace_DecisionMatrix(string baggageOrgId, string sdkOrgId, bool strict, bool expected)
181181
{
182182
var options = new SentryOptions
183183
{
@@ -189,7 +189,7 @@ public void ShouldContinueTrace_DecisionMatrix(string? baggageOrgId, string? sdk
189189
options.OrgId = sdkOrgId;
190190
}
191191

192-
BaggageHeader? baggage = null;
192+
BaggageHeader baggage = null;
193193
if (baggageOrgId != null)
194194
{
195195
baggage = BaggageHeader.TryParse($"sentry-trace_id=bc6d53f15eb88f4320054569b8c553d4,sentry-org_id={baggageOrgId}");

0 commit comments

Comments
 (0)