@@ -294,29 +294,14 @@ public void HeartbeatInterval(string value, double expected)
294294 settings . HeartbeatInterval . Should ( ) . Be ( TimeSpan . FromSeconds ( expected ) ) ;
295295 }
296296
297- [ Theory ]
298- [ InlineData ( "0" , false ) ]
299- [ InlineData ( null , false ) ]
300- [ InlineData ( "" , false ) ]
301- [ InlineData ( "1" , true ) ]
302- public void V2Enabled_DisabledByDefault ( string value , bool expected )
303- {
304- var source = CreateConfigurationSource ( ( ConfigurationKeys . Telemetry . V2Enabled , value ) ) ;
305- var settings = TelemetrySettings . FromSource ( source , NullConfigurationTelemetry . Instance , ( ) => true , isServerless : false ) ;
306-
307- settings . V2Enabled . Should ( ) . Be ( expected ) ;
308- }
309-
310297 [ Theory ]
311298 [ InlineData ( "0" , false ) ]
312299 [ InlineData ( null , true ) ]
313300 [ InlineData ( "" , true ) ]
314301 [ InlineData ( "1" , true ) ]
315- public void V2Enabled_EnabledByDefaultInAas ( string value , bool expected )
302+ public void V2Enabled_EnabledByDefault ( string value , bool expected )
316303 {
317- var source = CreateConfigurationSource (
318- ( ConfigurationKeys . AzureAppService . AzureAppServicesContextKey , "1" ) ,
319- ( ConfigurationKeys . Telemetry . V2Enabled , value ) ) ;
304+ var source = CreateConfigurationSource ( ( ConfigurationKeys . Telemetry . V2Enabled , value ) ) ;
320305 var settings = TelemetrySettings . FromSource ( source , NullConfigurationTelemetry . Instance , ( ) => true , isServerless : false ) ;
321306
322307 settings . V2Enabled . Should ( ) . Be ( expected ) ;
0 commit comments