Skip to content

Commit 263840f

Browse files
committed
Fix BaggageInSpanTags test
1 parent 97c4111 commit 263840f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/AspNet/AspNetMvc5Tests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,13 +224,13 @@ public override Result ValidateIntegrationSpan(MockSpan span, string metadataSch
224224
[Trait("RunOnWindows", "True")]
225225
[Trait("LoadFromGAC", "True")]
226226
[MemberData(nameof(Data))]
227-
public async Task BaggageInSpanTags(string path, HttpStatusCode statusCode)
227+
public async Task BaggageInSpanTags(string path, int statusCode)
228228
{
229229
// TransferRequest cannot be called in the classic mode, so we expect a 500 when this happens
230230
var toLowerPath = path.ToLower();
231231
if (_testName.Contains(".Classic") && toLowerPath.Contains("badrequest") && toLowerPath.Contains("transferrequest"))
232232
{
233-
statusCode = (HttpStatusCode)500;
233+
statusCode = 500;
234234
}
235235

236236
var expectedSpanCount = _enableInferredProxySpans ? 3 : 2;
@@ -239,7 +239,7 @@ public async Task BaggageInSpanTags(string path, HttpStatusCode statusCode)
239239
path: _iisFixture.VirtualApplicationPath + path, // Append virtual directory to the actual request
240240
agent: _iisFixture.Agent,
241241
httpPort: _iisFixture.HttpPort,
242-
expectedHttpStatusCode: statusCode,
242+
expectedHttpStatusCode: (HttpStatusCode)statusCode,
243243
expectedSpanCount: expectedSpanCount,
244244
filterServerSpans: !_enableInferredProxySpans);
245245

0 commit comments

Comments
 (0)