@@ -224,13 +224,13 @@ public override Result ValidateIntegrationSpan(MockSpan span, string metadataSch
224
224
[ Trait ( "RunOnWindows" , "True" ) ]
225
225
[ Trait ( "LoadFromGAC" , "True" ) ]
226
226
[ MemberData ( nameof ( Data ) ) ]
227
- public async Task BaggageInSpanTags ( string path , HttpStatusCode statusCode )
227
+ public async Task BaggageInSpanTags ( string path , int statusCode )
228
228
{
229
229
// TransferRequest cannot be called in the classic mode, so we expect a 500 when this happens
230
230
var toLowerPath = path . ToLower ( ) ;
231
231
if ( _testName . Contains ( ".Classic" ) && toLowerPath . Contains ( "badrequest" ) && toLowerPath . Contains ( "transferrequest" ) )
232
232
{
233
- statusCode = ( HttpStatusCode ) 500 ;
233
+ statusCode = 500 ;
234
234
}
235
235
236
236
var expectedSpanCount = _enableInferredProxySpans ? 3 : 2 ;
@@ -239,7 +239,7 @@ public async Task BaggageInSpanTags(string path, HttpStatusCode statusCode)
239
239
path : _iisFixture . VirtualApplicationPath + path , // Append virtual directory to the actual request
240
240
agent : _iisFixture . Agent ,
241
241
httpPort : _iisFixture . HttpPort ,
242
- expectedHttpStatusCode : statusCode ,
242
+ expectedHttpStatusCode : ( HttpStatusCode ) statusCode ,
243
243
expectedSpanCount : expectedSpanCount ,
244
244
filterServerSpans : ! _enableInferredProxySpans ) ;
245
245
0 commit comments