198 references to DefaultTimeout
Aspire.Hosting.Tests (198)
AppHostSmokeTests.cs (2)
60
await host.StartAsync().
DefaultTimeout
();
61
await host.StopAsync().
DefaultTimeout
();
Dashboard\DashboardLifecycleHookTests.cs (4)
46
await hook.BeforeStartAsync(model, CancellationToken.None).
DefaultTimeout
();
48
await resourceNotificationService.PublishUpdateAsync(model.Resources.Single(), s => s).
DefaultTimeout
();
89
await hook.BeforeStartAsync(model, CancellationToken.None).
DefaultTimeout
();
137
await hook.BeforeStartAsync(model, CancellationToken.None).
DefaultTimeout
();
Dashboard\DashboardResourceTests.cs (16)
43
await app.ExecuteBeforeStartHooksAsync(default).
DefaultTimeout
();
71
await app.ExecuteBeforeStartHooksAsync(default).
DefaultTimeout
();
104
await app.ExecuteBeforeStartHooksAsync(default).
DefaultTimeout
();
178
await app.ExecuteBeforeStartHooksAsync(default).
DefaultTimeout
();
219
await app.ExecuteBeforeStartHooksAsync(default).
DefaultTimeout
();
258
await app.ExecuteBeforeStartHooksAsync(default).
DefaultTimeout
();
294
await app.ExecuteBeforeStartHooksAsync(default).
DefaultTimeout
();
332
await app.ExecuteBeforeStartHooksAsync(default).
DefaultTimeout
();
378
await app.ExecuteBeforeStartHooksAsync(default).
DefaultTimeout
();
405
await app.ExecuteBeforeStartHooksAsync(default).
DefaultTimeout
();
421
await app.ExecuteBeforeStartHooksAsync(default).
DefaultTimeout
();
486
await app.ExecuteBeforeStartHooksAsync(default).
DefaultTimeout
();
497
await resourceNotificationService.PublishUpdateAsync(dashboard, "aspire-dashboard-0", s => s with { State = "Running" }).
DefaultTimeout
();
500
await watchForLogSubs.
DefaultTimeout
();
526
await app.DisposeAsync().AsTask().
DefaultTimeout
();
538
await app.ExecuteBeforeStartHooksAsync(default).
DefaultTimeout
();
Dashboard\DashboardServiceTests.cs (7)
84
await task.
DefaultTimeout
();
130
await task.
DefaultTimeout
();
171
}).
DefaultTimeout
();
209
await CancelTokenAndAwaitTask(cts, task).
DefaultTimeout
();
281
await CancelTokenAndAwaitTask(cts, task).
DefaultTimeout
();
327
await CancelTokenAndAwaitTask(cts, task).
DefaultTimeout
();
385
await CancelTokenAndAwaitTask(cts, task).
DefaultTimeout
();
Dashboard\ResourcePublisherTests.cs (7)
51
await cts.CancelAsync().
DefaultTimeout
();
55
await task.
DefaultTimeout
();
104
await cts.CancelAsync().
DefaultTimeout
();
130
await cts.CancelAsync().
DefaultTimeout
();
150
await cts.CancelAsync().
DefaultTimeout
();
171
await cts.CancelAsync().
DefaultTimeout
();
179
await task.
DefaultTimeout
();
Dcp\DcpExecutorTests.cs (2)
106
await watchResourceTask.
DefaultTimeout
();
1149
await tcs.Task.
DefaultTimeout
();
DistributedApplicationTests.cs (44)
151
await restartResourceTask.
DefaultTimeout
(TestConstants.LongTimeoutDuration);
434
await app.StartAsync().
DefaultTimeout
(TestConstants.DefaultOrchestratorTestLongTimeout);
472
await app.StartAsync().
DefaultTimeout
(TestConstants.DefaultOrchestratorTestLongTimeout);
526
await app.StartAsync().
DefaultTimeout
(TestConstants.DefaultOrchestratorTestLongTimeout);
539
await app.StopAsync().
DefaultTimeout
(TestConstants.DefaultOrchestratorTestLongTimeout);
579
await app.StartAsync().
DefaultTimeout
(TestConstants.DefaultOrchestratorTestLongTimeout);
600
await app.StopAsync().
DefaultTimeout
(TestConstants.DefaultOrchestratorTestLongTimeout);
628
await app.StartAsync().
DefaultTimeout
(TestConstants.DefaultOrchestratorTestLongTimeout);
640
await orchestrator.StopResourceAsync(redisContainer.Metadata.Name, token).
DefaultTimeout
(TestConstants.DefaultOrchestratorTestTimeout);
653
await app.StopAsync().
DefaultTimeout
(TestConstants.DefaultOrchestratorTestLongTimeout);
671
await app.StartAsync().
DefaultTimeout
(TestConstants.DefaultOrchestratorTestLongTimeout);
677
await orchestrator.StopResourceAsync(serviceA.Metadata.Name, CancellationToken.None).
DefaultTimeout
(TestConstants.DefaultOrchestratorTestTimeout);
682
await orchestrator.StartResourceAsync(serviceA.Metadata.Name, CancellationToken.None).
DefaultTimeout
(TestConstants.DefaultOrchestratorTestTimeout);
687
await app.StopAsync().
DefaultTimeout
(TestConstants.DefaultOrchestratorTestLongTimeout);
713
await app.StartAsync().
DefaultTimeout
(TestConstants.DefaultOrchestratorTestLongTimeout);
739
await app.StopAsync().
DefaultTimeout
(TestConstants.DefaultOrchestratorTestLongTimeout);
768
await app.StartAsync().
DefaultTimeout
(TestConstants.DefaultOrchestratorTestLongTimeout);
781
await app.StopAsync().
DefaultTimeout
(TestConstants.DefaultOrchestratorTestLongTimeout);
808
await app.StartAsync().
DefaultTimeout
(TestConstants.DefaultOrchestratorTestLongTimeout);
817
await app.StopAsync().
DefaultTimeout
(TestConstants.DefaultOrchestratorTestLongTimeout);
839
await app.StartAsync().
DefaultTimeout
(TestConstants.DefaultOrchestratorTestLongTimeout);
851
await app.StopAsync().
DefaultTimeout
(TestConstants.DefaultOrchestratorTestLongTimeout);
868
await app.StartAsync().
DefaultTimeout
(TestConstants.DefaultOrchestratorTestLongTimeout);
881
await app.StopAsync().
DefaultTimeout
(TestConstants.DefaultOrchestratorTestLongTimeout);
897
await app.StartAsync().
DefaultTimeout
(TestConstants.DefaultOrchestratorTestLongTimeout);
911
await app.StopAsync().
DefaultTimeout
(TestConstants.DefaultOrchestratorTestLongTimeout);
927
await app.StartAsync().
DefaultTimeout
(TestConstants.DefaultOrchestratorTestLongTimeout);
940
await app.StopAsync().
DefaultTimeout
(TestConstants.DefaultOrchestratorTestLongTimeout);
953
await app.StartAsync().
DefaultTimeout
(TestConstants.DefaultOrchestratorTestLongTimeout);
1014
var ex = await Assert.ThrowsAsync<InvalidOperationException>(async () => await app.StartAsync().
DefaultTimeout
(TestConstants.DefaultOrchestratorTestLongTimeout));
1033
var ex = await Assert.ThrowsAsync<InvalidOperationException>(async () => await app.StartAsync().
DefaultTimeout
(TestConstants.DefaultOrchestratorTestLongTimeout));
1055
await app.StartAsync().
DefaultTimeout
(TestConstants.DefaultOrchestratorTestLongTimeout);
1098
await app.StartAsync().
DefaultTimeout
(TestConstants.DefaultOrchestratorTestLongTimeout);
1104
await app.WaitForTextAsync("Content root path:", resourceName: testProgram.ServiceABuilder.Resource.Name).
DefaultTimeout
(TestConstants.LongTimeoutDuration);
1167
await app.StartAsync().
DefaultTimeout
(TestConstants.DefaultOrchestratorTestLongTimeout);
1170
await app.WaitForTextAsync("Application started.").
DefaultTimeout
(TestConstants.DefaultOrchestratorTestTimeout);
1197
await app.StopAsync().
DefaultTimeout
(TestConstants.DefaultOrchestratorTestLongTimeout);
1221
await app.StartAsync().
DefaultTimeout
(TestConstants.DefaultOrchestratorTestLongTimeout);
1224
await app.WaitForTextAsync("Application started.").
DefaultTimeout
(TestConstants.DefaultOrchestratorTestTimeout);
1255
await app.StopAsync().
DefaultTimeout
(TestConstants.DefaultOrchestratorTestLongTimeout);
1272
var ex = await Assert.ThrowsAsync<InvalidOperationException>(async () => await app.StartAsync().
DefaultTimeout
(TestConstants.DefaultOrchestratorTestLongTimeout));
1295
await app.StartAsync().
DefaultTimeout
(TestConstants.DefaultOrchestratorTestLongTimeout);
1327
await app.StartAsync().
DefaultTimeout
(TestConstants.DefaultOrchestratorTestLongTimeout);
1329
await kubernetesLifecycle.HooksCompleted.
DefaultTimeout
(TestConstants.DefaultOrchestratorTestTimeout);
Eventing\DistributedApplicationBuilderEventingTests.cs (18)
39
await blockAssertionTcs.Task.
DefaultTimeout
();
42
await pendingPublish.
DefaultTimeout
();
72
await Task.WhenAll(blockAssertionSub1.Task, blockAssertionSub2.Task).
DefaultTimeout
();
75
await pendingPublish.
DefaultTimeout
();
102
await builder.Eventing.PublishAsync(new DummyEvent(), EventDispatchBehavior.NonBlockingConcurrent).
DefaultTimeout
();
105
await Task.WhenAll(blockAssertionSub1.Task, blockAssertionSub2.Task).
DefaultTimeout
();
137
await builder.Eventing.PublishAsync(new DummyEvent(), EventDispatchBehavior.NonBlockingSequential).
DefaultTimeout
();
141
await blockAssert1.Task.
DefaultTimeout
();
154
await blockAssert2.Task.
DefaultTimeout
();
160
await blockAssert3.Task.
DefaultTimeout
();
190
await app.StartAsync().
DefaultTimeout
(TestConstants.DefaultOrchestratorTestTimeout);
192
await beforeResourceStartedTcs.Task.
DefaultTimeout
();
194
await app.StopAsync().
DefaultTimeout
(TestConstants.DefaultOrchestratorTestLongTimeout);
217
await app.StartAsync().
DefaultTimeout
(TestConstants.DefaultOrchestratorTestTimeout);
222
await app.StopAsync().
DefaultTimeout
(TestConstants.DefaultOrchestratorTestLongTimeout);
328
await app.StartAsync().
DefaultTimeout
(TestConstants.DefaultOrchestratorTestTimeout);
331
await app.ResourceNotifications.WaitForResourceAsync("redis", KnownResourceStates.Running).
DefaultTimeout
();
336
await resourceStoppedTcs.Task.
DefaultTimeout
();
Health\ResourceHealthCheckServiceTests.cs (37)
30
await app.StartAsync().
DefaultTimeout
();
35
}).
DefaultTimeout
();
70
await app.StartAsync().
DefaultTimeout
();
75
}).
DefaultTimeout
();
94
await app.StopAsync().
DefaultTimeout
();
113
await app.StartAsync().
DefaultTimeout
();
118
}).
DefaultTimeout
();
134
await app.StopAsync().
DefaultTimeout
();
160
await app.StartAsync().
DefaultTimeout
();
183
await monitorStoppedTcs.Task.
DefaultTimeout
();
201
await app.StopAsync().
DefaultTimeout
();
226
await app.StartAsync(abortTokenSource.Token).
DefaultTimeout
();
231
}).
DefaultTimeout
();
267
await app.StartAsync(abortTokenSource.Token).
DefaultTimeout
();
272
}).
DefaultTimeout
();
284
await app.StopAsync(abortTokenSource.Token).
DefaultTimeout
();
310
await app.StartAsync(abortTokenSource.Token).
DefaultTimeout
();
315
}).
DefaultTimeout
();
316
await app.ResourceNotifications.WaitForResourceAsync(resource.Resource.Name, KnownResourceStates.Running, abortTokenSource.Token).
DefaultTimeout
();
326
await app.StopAsync(abortTokenSource.Token).
DefaultTimeout
();
351
}).
DefaultTimeout
();
356
await pendingStart.
DefaultTimeout
();
377
var pendingStart = app.StartAsync().
DefaultTimeout
();
382
}).
DefaultTimeout
();
394
await app.StopAsync().
DefaultTimeout
();
423
var pendingStart = app.StartAsync().
DefaultTimeout
(TestConstants.LongTimeoutDuration);
444
}).
DefaultTimeout
();
452
await app.StopAsync().
DefaultTimeout
();
481
var pendingStart = app.StartAsync().
DefaultTimeout
();
489
}).
DefaultTimeout
();
506
await app.StopAsync().
DefaultTimeout
();
540
}).
DefaultTimeout
();
548
}).
DefaultTimeout
();
579
await app.StartAsync().
DefaultTimeout
();
584
}).
DefaultTimeout
();
625
await app.StartAsync().
DefaultTimeout
();
630
}).
DefaultTimeout
();
HealthCheckTests.cs (5)
103
await rns.WaitForResourceAsync(resource.Resource.Name, KnownResourceStates.Running).
DefaultTimeout
(TestConstants.DefaultOrchestratorTestLongTimeout);
105
await rns.WaitForResourceAsync(dependentResource.Resource.Name, KnownResourceStates.Waiting).
DefaultTimeout
(TestConstants.DefaultOrchestratorTestLongTimeout);
111
await rns.WaitForResourceAsync(dependentResource.Resource.Name, KnownResourceStates.Running).
DefaultTimeout
(TestConstants.DefaultOrchestratorTestLongTimeout);
113
await pendingStart.
DefaultTimeout
(TestConstants.DefaultOrchestratorTestTimeout);
115
await app.StopAsync().
DefaultTimeout
(TestConstants.DefaultOrchestratorTestTimeout);
Orchestrator\ApplicationOrchestratorTests.cs (6)
59
await watchResourceTask.
DefaultTimeout
();
106
await watchResourceTask.
DefaultTimeout
();
213
await watchResourceTask.
DefaultTimeout
();
273
await watchResourceTask.
DefaultTimeout
();
320
await watchResourceTask.
DefaultTimeout
();
433
await watchResourceTask.
DefaultTimeout
();
ProjectResourceTests.cs (2)
50
await File.WriteAllTextAsync(projectFilePath, csProjContent).
DefaultTimeout
();
53
await File.WriteAllTextAsync(launchSettingsFilePath, launchSettingsContent).
DefaultTimeout
();
Publishing\PublishingActivityReporterTests.cs (2)
487
await reporter.CompleteInteractionAsync(promptId, responses, CancellationToken.None).
DefaultTimeout
();
527
await reporter.CompleteInteractionAsync(notificationId, responses, CancellationToken.None).
DefaultTimeout
();
ResourceLoggerServiceTests.cs (10)
27
await subsLoop.
DefaultTimeout
();
46
await subsLoop.
DefaultTimeout
();
68
await subsLoop.
DefaultTimeout
();
108
await subsLoop.
DefaultTimeout
();
127
await subsLoop.
DefaultTimeout
();
140
await subsLoop.
DefaultTimeout
();
164
await subsLoop.
DefaultTimeout
();
185
await subsLoop.
DefaultTimeout
();
203
await subsLoop.
DefaultTimeout
();
229
await subsLoop.
DefaultTimeout
();
ResourceNotificationTests.cs (28)
70
await notificationService.PublishUpdateAsync(resource, state => state with { Properties = state.Properties.Add(new("A", "value")) }).
DefaultTimeout
();
72
await notificationService.PublishUpdateAsync(resource, state => state with { Properties = state.Properties.Add(new("B", "value")) }).
DefaultTimeout
();
123
await notificationService.PublishUpdateAsync(resource1, state => state with { Properties = state.Properties.Add(new("A", "value")) }).
DefaultTimeout
();
125
await notificationService.PublishUpdateAsync(resource2, state => state with { Properties = state.Properties.Add(new("B", "value")) }).
DefaultTimeout
();
127
await notificationService.PublishUpdateAsync(resource1, "replica1", state => state with { Properties = state.Properties.Add(new("C", "value")) }).
DefaultTimeout
();
164
await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).
DefaultTimeout
();
165
await waitTask.
DefaultTimeout
();
180
await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).
DefaultTimeout
();
181
await waitTask.
DefaultTimeout
();
194
await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).
DefaultTimeout
();
210
await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = KnownResourceStates.Running }).
DefaultTimeout
();
211
await waitTask.
DefaultTimeout
();
225
await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeOtherState" }).
DefaultTimeout
();
240
await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeOtherState" }).
DefaultTimeout
();
257
await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).
DefaultTimeout
();
259
await waitTask.
DefaultTimeout
();
319
await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).
DefaultTimeout
();
330
await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).
DefaultTimeout
();
340
await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "NewState" }).
DefaultTimeout
();
350
await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = null }).
DefaultTimeout
();
360
await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "" }).
DefaultTimeout
();
370
await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = " " }).
DefaultTimeout
();
388
await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { CreationTimeStamp = createdDate }).
DefaultTimeout
();
389
await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).
DefaultTimeout
();
390
await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { ExitCode = 0 }).
DefaultTimeout
();
469
}).
DefaultTimeout
();
475
}).
DefaultTimeout
();
519
}).
DefaultTimeout
();
VersionChecking\VersionCheckServiceTests.cs (8)
37
await service.ExecuteTask!.
DefaultTimeout
();
60
await service.ExecuteTask!.
DefaultTimeout
();
92
await service.ExecuteTask!.
DefaultTimeout
();
131
await service.ExecuteTask!.
DefaultTimeout
();
173
await service.ExecuteTask!.
DefaultTimeout
();
177
await service.ExecuteTask!.
DefaultTimeout
();
207
await service.ExecuteTask!.
DefaultTimeout
();
236
await service.ExecuteTask!.
DefaultTimeout
();