Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add WaitAsync overloads with timeouts #515

Merged
merged 2 commits into from
Jan 18, 2025

Added WaitAsync with timeout concurrency tests.

975865f
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

Add WaitAsync overloads with timeouts #515

Added WaitAsync with timeout concurrency tests.
975865f
Select commit
Loading
Failed to load commit list.
GitHub Actions / dotnet-test-results-net8.0-Release-Pool_Disabled-devMode succeeded Jan 18, 2025 in 0s

26354 passed, 0 failed and 0 skipped

Tests passed successfully

Report Passed Failed Skipped Time
TestResults/dotnet-test-results-net8.0-Release-Pool_Disabled-devMode-analyzer.trx 4✅ 3s
TestResults/dotnet-test-results-net8.0-Release-Pool_Disabled-devMode-core.trx 26350✅ 3612s

✅ TestResults/dotnet-test-results-net8.0-Release-Pool_Disabled-devMode-analyzer.trx

4 tests were completed in 3s with 4 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
ProtoPromise.Analyzer.Tests.ProtoPromiseAnalyzerTests 4✅ 3s

✅ TestResults/dotnet-test-results-net8.0-Release-Pool_Disabled-devMode-core.trx

26350 tests were completed in 3612s with 26350 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
ProtoPromiseTests.APIs.AllSettledTests 22✅ 2s
ProtoPromiseTests.APIs.AllTests 22✅ 2s
ProtoPromiseTests.APIs.APlus_2_1_PromiseStates+_2_1_1_WhenPendingAPromise 2✅ 203ms
ProtoPromiseTests.APIs.APlus_2_1_PromiseStates+_2_1_2_WhenFulfilledAPromise 3✅ 448ms
ProtoPromiseTests.APIs.APlus_2_1_PromiseStates+_2_1_3_WhenRejectedAPromise 4✅ 535ms
ProtoPromiseTests.APIs.APlus_2_2_TheThenMethod 4✅ 509ms
ProtoPromiseTests.APIs.APlus_2_2_TheThenMethod+_2_2_3_IfOnRejectedIsAFunction 6✅ 620ms
ProtoPromiseTests.APIs.APlus_2_2_TheThenMethod+_2_2_6_ThenMayBeCalledMultipleTimesOnTheSamePromise 4✅ 385ms
ProtoPromiseTests.APIs.APlus_2_2_TheThenMethod+IfOnFulfilledIsAFunction_2_2_2 5✅ 511ms
ProtoPromiseTests.APIs.APlus_2_2_TheThenMethod+ThenMustReturnAPromise_2_2_7 20✅ 2s
ProtoPromiseTests.APIs.APlus_2_3_ThePromiseResolutionProcedure 4✅ 636ms
ProtoPromiseTests.APIs.APlus_2_3_ThePromiseResolutionProcedure+_2_3_2_IfXIsAPromiseAdoptItsState 5✅ 721ms
ProtoPromiseTests.APIs.AsyncFunctionTests 22✅ 2s
ProtoPromiseTests.APIs.AsyncLocalTests 4✅ 378ms
ProtoPromiseTests.APIs.AwaitTests 52✅ 5s
ProtoPromiseTests.APIs.CancelationTests+Registration 40✅ 8s
ProtoPromiseTests.APIs.CancelationTests+Source 45✅ 4s
ProtoPromiseTests.APIs.CancelationTests+Token 35✅ 3s
ProtoPromiseTests.APIs.CaptureTests 24✅ 2s
ProtoPromiseTests.APIs.Channels.BoundedChannelTests 63✅ 6s
ProtoPromiseTests.APIs.Channels.UnboundedChannelTests 39✅ 4s
ProtoPromiseTests.APIs.Collections.TempCollectionTests 34✅ 3s
ProtoPromiseTests.APIs.ConfigureAwaitTests 612✅ 59s
ProtoPromiseTests.APIs.ConfigureContinuationTests 846✅ 83s
ProtoPromiseTests.APIs.ContinuewithTests 16✅ 2s
ProtoPromiseTests.APIs.DelayTests 48✅ 8s
ProtoPromiseTests.APIs.EachTests 502✅ 49s
ProtoPromiseTests.APIs.FinallyTests 132✅ 13s
ProtoPromiseTests.APIs.FirstTests 100✅ 10s
ProtoPromiseTests.APIs.Linq.AggregateAsyncTests 72✅ 7s
ProtoPromiseTests.APIs.Linq.AggregateBySeedSelectorTests 416✅ 41s
ProtoPromiseTests.APIs.Linq.AggregateBySingleSeedTests 240✅ 24s
ProtoPromiseTests.APIs.Linq.AllAsyncTests 48✅ 5s
ProtoPromiseTests.APIs.Linq.AnyAsyncTests 58✅ 6s
ProtoPromiseTests.APIs.Linq.AppendPrependTests 114✅ 11s
ProtoPromiseTests.APIs.Linq.AsyncEnumerableTests 127✅ 13s
ProtoPromiseTests.APIs.Linq.AverageAsyncTests 30✅ 3s
ProtoPromiseTests.APIs.Linq.ChunkTests 15✅ 1s
ProtoPromiseTests.APIs.Linq.ConcatTests 49✅ 5s
ProtoPromiseTests.APIs.Linq.ContainsAsyncTests 10✅ 989ms
ProtoPromiseTests.APIs.Linq.CountAsyncTests 35✅ 3s
ProtoPromiseTests.APIs.Linq.CountByTests 144✅ 14s
ProtoPromiseTests.APIs.Linq.DefaultIfEmptyTests 22✅ 2s
ProtoPromiseTests.APIs.Linq.DistinctTests 146✅ 14s
ProtoPromiseTests.APIs.Linq.ElementAtTests 42✅ 4s
ProtoPromiseTests.APIs.Linq.ExceptTests 223✅ 22s
ProtoPromiseTests.APIs.Linq.FirstOrDefaultTests 154✅ 15s
ProtoPromiseTests.APIs.Linq.FirstTests 77✅ 8s
ProtoPromiseTests.APIs.Linq.ForEachAsyncTests 48✅ 5s
ProtoPromiseTests.APIs.Linq.GroupByTests 328✅ 32s
ProtoPromiseTests.APIs.Linq.GroupJoinTests 368✅ 36s
ProtoPromiseTests.APIs.Linq.IndexTests 4✅ 417ms
ProtoPromiseTests.APIs.Linq.IntersectTests 223✅ 22s
ProtoPromiseTests.APIs.Linq.JoinTests 448✅ 44s
ProtoPromiseTests.APIs.Linq.LastOrDefaultTests 154✅ 15s
ProtoPromiseTests.APIs.Linq.LastTests 77✅ 7s
ProtoPromiseTests.APIs.Linq.LongCountAsyncTests 35✅ 3s
ProtoPromiseTests.APIs.Linq.MaxAsyncTests 22✅ 2s
ProtoPromiseTests.APIs.Linq.MaxByAsyncTests 120✅ 12s
ProtoPromiseTests.APIs.Linq.MergeTests 33✅ 3s
ProtoPromiseTests.APIs.Linq.MinAsyncTests 22✅ 2s
ProtoPromiseTests.APIs.Linq.MinByAsyncTests 120✅ 12s
ProtoPromiseTests.APIs.Linq.OrderByTests 768✅ 75s
ProtoPromiseTests.APIs.Linq.ReverseTests 11✅ 1s
ProtoPromiseTests.APIs.Linq.SelectManyNoResultSelectorTests 152✅ 15s
ProtoPromiseTests.APIs.Linq.SelectManyWithResultSelectorTests 336✅ 33s
ProtoPromiseTests.APIs.Linq.SelectTests 72✅ 7s
ProtoPromiseTests.APIs.Linq.SequenceEqualAsyncTests 64✅ 6s
ProtoPromiseTests.APIs.Linq.SingleOrDefaultTests 154✅ 15s
ProtoPromiseTests.APIs.Linq.SingleTests 77✅ 8s
ProtoPromiseTests.APIs.Linq.SkipAndTakeTests 784✅ 78s
ProtoPromiseTests.APIs.Linq.SkipWhileTests 144✅ 14s
ProtoPromiseTests.APIs.Linq.SumAsyncTests 30✅ 3s
ProtoPromiseTests.APIs.Linq.TakeWhileTests 144✅ 14s
ProtoPromiseTests.APIs.Linq.ToArrayAsyncTests 6✅ 608ms
ProtoPromiseTests.APIs.Linq.ToAsyncEnumerableTests 113✅ 12s
ProtoPromiseTests.APIs.Linq.ToDictionaryAsyncTests 312✅ 31s
ProtoPromiseTests.APIs.Linq.ToHashSetAsyncTests 12✅ 1s
ProtoPromiseTests.APIs.Linq.ToListAsyncTests 6✅ 602ms
ProtoPromiseTests.APIs.Linq.ToLookupAsyncTests 208✅ 21s
ProtoPromiseTests.APIs.Linq.UnionTests 1266✅ 126s
ProtoPromiseTests.APIs.Linq.WhereTests 72✅ 7s
ProtoPromiseTests.APIs.Linq.ZipTests 17✅ 2s
ProtoPromiseTests.APIs.MergeSettledTests 594✅ 59s
ProtoPromiseTests.APIs.MergeTests 10✅ 1s
ProtoPromiseTests.APIs.MiscellaneousTests 126✅ 49s
ProtoPromiseTests.APIs.NewAndRunTests 448✅ 45s
ProtoPromiseTests.APIs.ParallelForEachAsyncTests 30✅ 4s
ProtoPromiseTests.APIs.ParallelForTests 41✅ 5s
ProtoPromiseTests.APIs.PromiseCancelationTests 19✅ 2s
ProtoPromiseTests.APIs.PromiseCancelationTests+CancelationToken 26✅ 3s
ProtoPromiseTests.APIs.PromiseCancelationTests+CancelationToken+Reject 6✅ 852ms
ProtoPromiseTests.APIs.PromiseCancelationTests+CatchCancelationMayBeCalledMultipleTimesOnTheSamePromise 2✅ 201ms
ProtoPromiseTests.APIs.PromiseCancelationTests+IfOnCanceledIsAFunction 5✅ 501ms
ProtoPromiseTests.APIs.PromiseCancelationTests+ThePromiseResolutionProcedure 2✅ 205ms
ProtoPromiseTests.APIs.PromiseCancelationTests+ThePromiseResolutionProcedure+IfXIsAPromiseAdoptItsState 6✅ 605ms
ProtoPromiseTests.APIs.PromiseCancelationTests+WhenCanceledAPromise 2✅ 200ms
ProtoPromiseTests.APIs.PromiseCancelationTests+WhenFulfilledAPromise 2✅ 202ms
ProtoPromiseTests.APIs.PromiseCancelationTests+WhenPendingAPromise 2✅ 200ms
ProtoPromiseTests.APIs.PromiseCancelationTests+WhenRejectedAPromise 2✅ 201ms
ProtoPromiseTests.APIs.PromiseGroups.PromiseAllGroupTests 544✅ 55s
ProtoPromiseTests.APIs.PromiseGroups.PromiseAllResultsGroupTests 1082✅ 110s
ProtoPromiseTests.APIs.PromiseGroups.PromiseEachGroupTests 678✅ 69s
ProtoPromiseTests.APIs.PromiseGroups.PromiseMergeGroupTests 1276✅ 131s
ProtoPromiseTests.APIs.PromiseGroups.PromiseMergeResultsGroupTests 1287✅ 133s
ProtoPromiseTests.APIs.PromiseGroups.PromiseRaceGroupTests 1272✅ 132s
ProtoPromiseTests.APIs.PromiseGroups.PromiseRaceWithIndexGroupTests 1272✅ 134s
ProtoPromiseTests.APIs.RaceTests 76✅ 8s
ProtoPromiseTests.APIs.SequenceTests 15✅ 2s
ProtoPromiseTests.APIs.Threading.AsyncAutoResetEventTests 26✅ 3s
ProtoPromiseTests.APIs.Threading.AsyncConditionVariableTests 29✅ 3s
ProtoPromiseTests.APIs.Threading.AsyncCountdownEventTests 28✅ 3s
ProtoPromiseTests.APIs.Threading.AsyncLockTests 21✅ 3s
ProtoPromiseTests.APIs.Threading.AsyncManualResetEventTests 27✅ 3s
ProtoPromiseTests.APIs.Threading.AsyncMonitorTests 38✅ 5s
ProtoPromiseTests.APIs.Threading.AsyncReaderWriterLockTests 215✅ 24s
ProtoPromiseTests.APIs.Threading.AsyncSemaphoreTests 29✅ 3s
ProtoPromiseTests.APIs.Timers.TimerFactoryTests 4✅ 6s
ProtoPromiseTests.APIs.UncaughtRejectionTests 76✅ 10s
ProtoPromiseTests.APIs.Utilities.AsyncLazyTests 18✅ 2s
ProtoPromiseTests.APIs.Utilities.AsyncLazyWithProgressTests 33✅ 4s
ProtoPromiseTests.APIs.Utilities.ProgressTests 148✅ 16s
ProtoPromiseTests.APIs.WaitAsyncTests 1068✅ 123s
ProtoPromiseTests.Concurrency.AllConcurrencyTests 144✅ 29s
ProtoPromiseTests.Concurrency.ApiWithCancelationTokenConcurrencyTests 12✅ 8s
ProtoPromiseTests.Concurrency.AwaitConcurrencyTests 18✅ 2s
ProtoPromiseTests.Concurrency.CancelationConcurrencyTests 38✅ 7s
ProtoPromiseTests.Concurrency.Channels.BoundedChannelConcurrencyTests 432✅ 48s
ProtoPromiseTests.Concurrency.Channels.UnboundedChannelConcurrencyTests 135✅ 15s
ProtoPromiseTests.Concurrency.DeferredConcurrencyTests 12✅ 1s
ProtoPromiseTests.Concurrency.DeferredThreadTests 10✅ 1s
ProtoPromiseTests.Concurrency.DelayConcurrencyTests 4✅ 472ms
ProtoPromiseTests.Concurrency.EachConcurrencyTests 72✅ 34s
ProtoPromiseTests.Concurrency.FirstConcurrencyTests 144✅ 28s
ProtoPromiseTests.Concurrency.Linq.AsyncEnumerableMergeConcurrencyTests 2✅ 229ms
ProtoPromiseTests.Concurrency.MergeConcurrencyTests 90✅ 143s
ProtoPromiseTests.Concurrency.PromiseConcurrencyTests 62✅ 15s
ProtoPromiseTests.Concurrency.PromiseGroups.PromiseAllGroupConcurrencyTests 144✅ 22s
ProtoPromiseTests.Concurrency.PromiseGroups.PromiseAllResultsGroupConcurrencyTests 144✅ 22s
ProtoPromiseTests.Concurrency.PromiseGroups.PromiseEachGroupConcurrencyTests 576✅ 125s
ProtoPromiseTests.Concurrency.PromiseGroups.PromiseMergeGroupConcurrencyTests 216✅ 46s
ProtoPromiseTests.Concurrency.PromiseGroups.PromiseMergeResultsGroupConcurrencyTests 216✅ 46s
ProtoPromiseTests.Concurrency.PromiseGroups.PromiseRaceGroupConcurrencyTests 288✅ 42s
ProtoPromiseTests.Concurrency.PromiseGroups.PromiseRaceWithIndexGroupConcurrencyTests 288✅ 44s
ProtoPromiseTests.Concurrency.PromiseNonPreservedConcurrencyTests 158✅ 22s
ProtoPromiseTests.Concurrency.RaceConcurrencyTests 144✅ 30s
ProtoPromiseTests.Concurrency.Threading.AsyncAutoResetEventConcurrencyTests 8✅ 3s
ProtoPromiseTests.Concurrency.Threading.AsyncCountdownEventConcurrencyTests 16✅ 6s
ProtoPromiseTests.Concurrency.Threading.AsyncLockConcurrencyTests 12✅ 128s
ProtoPromiseTests.Concurrency.Threading.AsyncManualResetEventConcurrencyTests 8✅ 2s
ProtoPromiseTests.Concurrency.Threading.AsyncReaderWriterLockConcurrencyTests 654✅ 353s
ProtoPromiseTests.Concurrency.Threading.AsyncSemaphoreConcurrencyTests 12✅ 58s
ProtoPromiseTests.Concurrency.Timers.TimerFactoryConcurrencyTests 36✅ 5s
ProtoPromiseTests.Concurrency.Utilities.AsyncLazyConcurrencyTests 3✅ 783ms
ProtoPromiseTests.Concurrency.Utilities.ProgressConcurrencyTests 60✅ 11s
ProtoPromiseTests.Concurrency.WaitAsyncConcurrencyTests 120✅ 14s