54 references to AsyncTestHelpers
Aspire.Hosting.Tests (54)
Dcp\DcpExecutorTests.cs (1)
645
await
AsyncTestHelpers
.AssertIsTrueRetryAsync(
DistributedApplicationTests.cs (3)
485
var cts =
AsyncTestHelpers
.CreateDefaultTimeoutTokenSource();
630
using var cts =
AsyncTestHelpers
.CreateDefaultTimeoutTokenSource(TestConstants.DefaultOrchestratorTestLongTimeout);
1100
using var cts =
AsyncTestHelpers
.CreateDefaultTimeoutTokenSource(TestConstants.LongTimeoutDuration);
Health\ResourceHealthCheckServiceTests.cs (5)
224
var abortTokenSource =
AsyncTestHelpers
.CreateDefaultTimeoutTokenSource(TestConstants.LongTimeoutDuration);
234
await
AsyncTestHelpers
.AssertIsTrueRetryAsync(
265
var abortTokenSource =
AsyncTestHelpers
.CreateDefaultTimeoutTokenSource(TestConstants.LongTimeoutDuration);
276
await
AsyncTestHelpers
.AssertIsTrueRetryAsync(
308
var abortTokenSource =
AsyncTestHelpers
.CreateDefaultTimeoutTokenSource(TestConstants.LongTimeoutDuration);
ResourceNotificationTests.cs (5)
67
using var cts =
AsyncTestHelpers
.CreateDefaultTimeoutTokenSource();
120
using var cts =
AsyncTestHelpers
.CreateDefaultTimeoutTokenSource();
177
using var cts =
AsyncTestHelpers
.CreateDefaultTimeoutTokenSource();
461
using var cts =
AsyncTestHelpers
.CreateDefaultTimeoutTokenSource();
512
using var cts =
AsyncTestHelpers
.CreateDefaultTimeoutTokenSource();
SlimTestProgramTests.cs (3)
26
using var cts =
AsyncTestHelpers
.CreateDefaultTimeoutTokenSource(TestConstants.LongTimeoutDuration);
51
using var cts =
AsyncTestHelpers
.CreateDefaultTimeoutTokenSource(TestConstants.LongTimeoutDuration);
70
using var cts =
AsyncTestHelpers
.CreateDefaultTimeoutTokenSource(TestConstants.LongTimeoutDuration);
TestProgramFixture.cs (1)
32
using var cts =
AsyncTestHelpers
.CreateDefaultTimeoutTokenSource(TestConstants.LongTimeoutDuration);
WaitForTests.cs (36)
28
var abortCts =
AsyncTestHelpers
.CreateDefaultTimeoutTokenSource(TestConstants.LongTimeoutDuration);
103
using var startupCts =
AsyncTestHelpers
.CreateDefaultTimeoutTokenSource(TestConstants.LongTimeoutDuration);
106
using var waitingStateCts =
AsyncTestHelpers
.CreateDefaultTimeoutTokenSource(TestConstants.LongTimeoutDuration);
134
using var startupCts =
AsyncTestHelpers
.CreateDefaultTimeoutTokenSource(TestConstants.LongTimeoutDuration);
137
using var waitingStateCts =
AsyncTestHelpers
.CreateDefaultTimeoutTokenSource(TestConstants.LongTimeoutDuration);
167
var startupCts =
AsyncTestHelpers
.CreateDefaultTimeoutTokenSource(TestConstants.LongTimeoutDuration);
173
var waitingStateCts =
AsyncTestHelpers
.CreateDefaultTimeoutTokenSource(TestConstants.LongTimeoutDuration);
211
var startupCts =
AsyncTestHelpers
.CreateDefaultTimeoutTokenSource(TestConstants.LongTimeoutDuration);
214
var waitingStateCts =
AsyncTestHelpers
.CreateDefaultTimeoutTokenSource(TestConstants.LongTimeoutDuration);
322
var startupCts =
AsyncTestHelpers
.CreateDefaultTimeoutTokenSource(TestConstants.LongTimeoutDuration);
325
var waitingStateCts =
AsyncTestHelpers
.CreateDefaultTimeoutTokenSource(TestConstants.LongTimeoutDuration);
356
var startupCts =
AsyncTestHelpers
.CreateDefaultTimeoutTokenSource(TestConstants.LongTimeoutDuration);
359
var waitingStateCts =
AsyncTestHelpers
.CreateDefaultTimeoutTokenSource(TestConstants.LongTimeoutDuration);
403
var startupCts =
AsyncTestHelpers
.CreateDefaultTimeoutTokenSource(TestConstants.LongTimeoutDuration);
406
var waitingStateCts =
AsyncTestHelpers
.CreateDefaultTimeoutTokenSource(TestConstants.LongTimeoutDuration);
445
var startupCts =
AsyncTestHelpers
.CreateDefaultTimeoutTokenSource(TestConstants.LongTimeoutDuration);
451
var waitingStateCts =
AsyncTestHelpers
.CreateDefaultTimeoutTokenSource(TestConstants.LongTimeoutDuration);
467
var runningStateCts =
AsyncTestHelpers
.CreateDefaultTimeoutTokenSource(TestConstants.LongTimeoutDuration);
492
var startupCts =
AsyncTestHelpers
.CreateDefaultTimeoutTokenSource(TestConstants.LongTimeoutDuration);
498
var waitingStateCts =
AsyncTestHelpers
.CreateDefaultTimeoutTokenSource(TestConstants.LongTimeoutDuration);
514
var runningStateCts =
AsyncTestHelpers
.CreateDefaultTimeoutTokenSource(TestConstants.LongTimeoutDuration);
547
var startupCts =
AsyncTestHelpers
.CreateDefaultTimeoutTokenSource(TestConstants.LongTimeoutDuration);
553
var waitingStateCts =
AsyncTestHelpers
.CreateDefaultTimeoutTokenSource(TestConstants.LongTimeoutDuration);
570
var runningStateCts =
AsyncTestHelpers
.CreateDefaultTimeoutTokenSource(TestConstants.LongTimeoutDuration);
601
var startupCts =
AsyncTestHelpers
.CreateDefaultTimeoutTokenSource(TestConstants.LongTimeoutDuration);
607
var waitingStateCts =
AsyncTestHelpers
.CreateDefaultTimeoutTokenSource(TestConstants.LongTimeoutDuration);
622
var runningStateCts =
AsyncTestHelpers
.CreateDefaultTimeoutTokenSource(TestConstants.LongTimeoutDuration);
652
var startupCts =
AsyncTestHelpers
.CreateDefaultTimeoutTokenSource(TestConstants.LongTimeoutDuration);
658
var waitingStateCts =
AsyncTestHelpers
.CreateDefaultTimeoutTokenSource(TestConstants.LongTimeoutDuration);
705
var startupCts =
AsyncTestHelpers
.CreateDefaultTimeoutTokenSource(TestConstants.LongTimeoutDuration);
711
var waitingStateCts =
AsyncTestHelpers
.CreateDefaultTimeoutTokenSource(TestConstants.LongTimeoutDuration);
754
var startupCts =
AsyncTestHelpers
.CreateDefaultTimeoutTokenSource(TestConstants.LongTimeoutDuration);
760
var waitingStateCts =
AsyncTestHelpers
.CreateDefaultTimeoutTokenSource(TestConstants.LongTimeoutDuration);
869
var startupCts =
AsyncTestHelpers
.CreateDefaultTimeoutTokenSource(TestConstants.LongTimeoutDuration);
873
var waitingStateCts =
AsyncTestHelpers
.CreateDefaultTimeoutTokenSource(TestConstants.LongTimeoutDuration);
883
var runningStateCts =
AsyncTestHelpers
.CreateDefaultTimeoutTokenSource(TestConstants.LongTimeoutDuration);