File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/tests/async/synchronization-context Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -40,8 +40,11 @@ private static async Task TestSyncContextContinueAsync()
4040 await WrappedYieldToThreadPool ( suspend : false ) . ConfigureAwait ( false ) ;
4141 Assert . Same ( context , SynchronizationContext . Current ) ;
4242
43- await WrappedYieldToThreadPool ( suspend : true ) . ConfigureAwait ( false ) ;
44- Assert . Null ( SynchronizationContext . Current ) ;
43+ // Currently disabled since ConfigureAwait does not become a runtime async call,
44+ // and this has a race condition until it does (where the callee finishes before
45+ // we check IsCompleted on the awaiter).
46+ //await WrappedYieldToThreadPool(suspend: true).ConfigureAwait(false);
47+ //Assert.Null(SynchronizationContext.Current);
4548
4649 await WrappedYieldToThreadWithCustomSyncContext ( ) ;
4750 Assert . Null ( SynchronizationContext . Current ) ;
You can’t perform that action at this time.
0 commit comments