Skip to content

Commit

Permalink
Update dispose async test timeout and better diagnostics (dotnet#106272)
Browse files Browse the repository at this point in the history
  • Loading branch information
steveharter authored Aug 12, 2024
1 parent 8d51dc9 commit c71fd55
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -392,10 +392,10 @@ public void GetAsyncService_DisposeAsyncOnSameThread_ThrowsAndDoesNotHangAndDisp
var service = sp.GetRequiredService<DisposeServiceProviderInCtorAsyncDisposable>();
});
});
}).Wait(TimeSpan.FromSeconds(10));
}).Wait(TimeSpan.FromSeconds(20));

Assert.True(doesNotHang);
Assert.True(asyncDisposableResource.DisposeAsyncCalled);
Assert.True(doesNotHang, "!doesNotHang");
Assert.True(asyncDisposableResource.DisposeAsyncCalled, "!DisposeAsyncCalled");
}

[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))]
Expand Down

0 comments on commit c71fd55

Please sign in to comment.