@@ -342,6 +342,12 @@ public async ValueTask DisposeAsync()
342
342
343
343
public abstract class StreamTests : IClassFixture < StreamTestsFixture > , IDisposable
344
344
{
345
+ #if DEBUG
346
+ public const string SkipConst = "" ;
347
+ #else
348
+ public const string SkipConst = "Streaming tests are timing sensitive and brittle; useful for debug, but skipping here" ;
349
+ #endif
350
+
345
351
protected int Port => _fixture . Port ;
346
352
private readonly StreamTestsFixture _fixture ;
347
353
public StreamTests ( int port , StreamTestsFixture fixture , ITestOutputHelper log )
@@ -369,7 +375,7 @@ public void FooIsContractType()
369
375
public void FooHasMarshaller ( )
370
376
=> Assert . NotNull ( BinderConfiguration . Default . GetMarshaller < Foo > ( ) ) ;
371
377
372
- [ Theory ]
378
+ [ Theory ( Skip = SkipConst ) ]
373
379
[ InlineData ( Scenario . RunToCompletion , DEFAULT_SIZE , CallContextFlags . None ) ]
374
380
[ InlineData ( Scenario . RunToCompletion , DEFAULT_SIZE , CallContextFlags . CaptureMetadata ) ]
375
381
[ InlineData ( Scenario . YieldNothing , 0 , CallContextFlags . IgnoreStreamTermination ) ]
@@ -434,7 +440,7 @@ void CheckHeaderState()
434
440
}
435
441
}
436
442
437
- [ Theory ]
443
+ [ Theory ( Skip = SkipConst ) ]
438
444
[ InlineData ( Scenario . TakeNothingBadProducer , 0 , CallContextFlags . None ) ]
439
445
[ InlineData ( Scenario . TakeNothingBadProducer , 0 , CallContextFlags . CaptureMetadata ) ]
440
446
[ InlineData ( Scenario . FaultSuccessBadProducer , 0 , CallContextFlags . None ) ]
@@ -480,7 +486,7 @@ void CheckHeaderState()
480
486
}
481
487
}
482
488
483
- [ Theory ]
489
+ [ Theory ( Skip = SkipConst ) ]
484
490
[ InlineData ( Scenario . FaultAfterYield , DEFAULT_SIZE , "after yield" , CallContextFlags . None ) ]
485
491
[ InlineData ( Scenario . FaultAfterYield , DEFAULT_SIZE , "after yield" , CallContextFlags . CaptureMetadata ) ]
486
492
[ InlineData ( Scenario . FaultBeforeYield , 0 , "before yield" , CallContextFlags . None ) ]
@@ -778,7 +784,7 @@ public async Task BlockingUnarySuccess(Scenario scenario, CallContextFlags flags
778
784
}
779
785
}
780
786
781
- [ Theory ]
787
+ [ Theory ( Skip = SkipConst ) ]
782
788
[ InlineData ( 8 , 10 ) ]
783
789
[ InlineData ( 8 , 20 , 15 ) ]
784
790
[ InlineData ( 0 , 10 ) ]
@@ -823,7 +829,7 @@ public async Task ClientStreaming()
823
829
Assert . Equal ( Enumerable . Range ( 0 , 10 ) . Sum ( ) , result . Bar ) ;
824
830
}
825
831
826
- [ Theory ]
832
+ [ Theory ( Skip = SkipConst ) ]
827
833
[ InlineData ( true ) ]
828
834
[ InlineData ( false ) ]
829
835
public async Task ServerStreaming ( bool fault )
0 commit comments