@@ -60,7 +60,7 @@ public async Task SubmitsTraces(AppPoolMode appPoolMode, Gac useGac)
6060 // accessible to the Windows docker container where the test application is executed by binding
6161 // the endpoint to all network interfaces. In order to do that it is necessary to open the port
6262 // on the firewall.
63- using var collector = new MockSpansCollector ( Output , host : "*" ) ;
63+ using var collector = await MockSpansCollector . InitializeAsync ( Output , host : "*" ) ;
6464 using var fwPort = FirewallHelper . OpenWinPort ( collector . Port , Output ) ;
6565 collector . Expect ( "OpenTelemetry.Instrumentation.AspNet" ) ; // Expect Mvc span
6666 collector . Expect ( "OpenTelemetry.Instrumentation.AspNet" ) ; // Expect WebApi span
@@ -93,7 +93,7 @@ public async Task SubmitTracesCapturesHttpHeaders(AppPoolMode appPoolMode, Gac u
9393 // accessible to the Windows docker container where the test application is executed by binding
9494 // the endpoint to all network interfaces. In order to do that it is necessary to open the port
9595 // on the firewall.
96- using var collector = new MockSpansCollector ( Output , host : "*" ) ;
96+ using var collector = await MockSpansCollector . InitializeAsync ( Output , host : "*" ) ;
9797 using var fwPort = FirewallHelper . OpenWinPort ( collector . Port , Output ) ;
9898 collector . Expect ( "OpenTelemetry.Instrumentation.AspNet" , span => // Expect Mvc span
9999 {
@@ -161,7 +161,7 @@ public async Task TracesResource()
161161 // accessible to the Windows docker container where the test application is executed by binding
162162 // the endpoint to all network interfaces. In order to do that it is necessary to open the port
163163 // on the firewall.
164- using var collector = new MockSpansCollector ( Output , host : "*" ) ;
164+ using var collector = await MockSpansCollector . InitializeAsync ( Output , host : "*" ) ;
165165 using var fwPort = FirewallHelper . OpenWinPort ( collector . Port , Output ) ;
166166 collector . ResourceExpector . Expect ( "service.name" , ServiceName ) ; // this is set via env var in Dockerfile and Wep.config, but env var has precedence
167167 collector . ResourceExpector . Expect ( "deployment.environment.name" , "test" ) ; // this is set via Wep.config
@@ -193,7 +193,7 @@ public async Task SubmitMetrics()
193193 // accessible to the Windows docker container where the test application is executed by binding
194194 // the endpoint to all network interfaces. In order to do that it is necessary to open the port
195195 // on the firewall.
196- using var collector = new MockMetricsCollector ( Output , host : "*" ) ;
196+ using var collector = await MockMetricsCollector . InitializeAsync ( Output , host : "*" ) ;
197197 using var fwPort = FirewallHelper . OpenWinPort ( collector . Port , Output ) ;
198198 collector . Expect ( "OpenTelemetry.Instrumentation.AspNet" ) ;
199199
0 commit comments