186 references to DefaultTimeout
Aspire.Hosting.Tests (186)
Dashboard\DashboardLifecycleHookTests.cs (4)
48await hook.BeforeStartAsync(model, CancellationToken.None).DefaultTimeout(); 50await resourceNotificationService.PublishUpdateAsync(model.Resources.Single(), s => s).DefaultTimeout(); 91await hook.BeforeStartAsync(model, CancellationToken.None).DefaultTimeout(); 139await hook.BeforeStartAsync(model, CancellationToken.None).DefaultTimeout();
Dashboard\DashboardResourceTests.cs (16)
45await app.ExecuteBeforeStartHooksAsync(default).DefaultTimeout(); 69await app.ExecuteBeforeStartHooksAsync(default).DefaultTimeout(); 102await app.ExecuteBeforeStartHooksAsync(default).DefaultTimeout(); 174await app.ExecuteBeforeStartHooksAsync(default).DefaultTimeout(); 212await app.ExecuteBeforeStartHooksAsync(default).DefaultTimeout(); 249await app.ExecuteBeforeStartHooksAsync(default).DefaultTimeout(); 283await app.ExecuteBeforeStartHooksAsync(default).DefaultTimeout(); 319await app.ExecuteBeforeStartHooksAsync(default).DefaultTimeout(); 363await app.ExecuteBeforeStartHooksAsync(default).DefaultTimeout(); 388await app.ExecuteBeforeStartHooksAsync(default).DefaultTimeout(); 404await app.ExecuteBeforeStartHooksAsync(default).DefaultTimeout(); 469await app.ExecuteBeforeStartHooksAsync(default).DefaultTimeout(); 480await resourceNotificationService.PublishUpdateAsync(dashboard, "aspire-dashboard-0", s => s with { State = "Running" }).DefaultTimeout(); 483await watchForLogSubs.DefaultTimeout(); 509await app.DisposeAsync().AsTask().DefaultTimeout(); 521await app.ExecuteBeforeStartHooksAsync(default).DefaultTimeout();
Dashboard\DashboardServiceTests.cs (6)
85await task.DefaultTimeout(); 131await task.DefaultTimeout(); 172}).DefaultTimeout(); 210await CancelTokenAndAwaitTask(cts, task).DefaultTimeout(); 282await CancelTokenAndAwaitTask(cts, task).DefaultTimeout(); 340await CancelTokenAndAwaitTask(cts, task).DefaultTimeout();
Dashboard\ResourcePublisherTests.cs (7)
52await cts.CancelAsync().DefaultTimeout(); 56await task.DefaultTimeout(); 105await cts.CancelAsync().DefaultTimeout(); 131await cts.CancelAsync().DefaultTimeout(); 151await cts.CancelAsync().DefaultTimeout(); 172await cts.CancelAsync().DefaultTimeout(); 180await task.DefaultTimeout();
Dcp\DcpExecutorTests.cs (2)
103await watchResourceTask.DefaultTimeout(); 1146await tcs.Task.DefaultTimeout();
DistributedApplicationTests.cs (44)
152await restartResourceTask.DefaultTimeout(TestConstants.LongTimeoutDuration); 435await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 473await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 527await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 540await app.StopAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 580await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 601await app.StopAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 629await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 641await orchestrator.StopResourceAsync(redisContainer.Metadata.Name, token).DefaultTimeout(TestConstants.DefaultOrchestratorTestTimeout); 654await app.StopAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 672await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 678await orchestrator.StopResourceAsync(serviceA.Metadata.Name, CancellationToken.None).DefaultTimeout(TestConstants.DefaultOrchestratorTestTimeout); 683await orchestrator.StartResourceAsync(serviceA.Metadata.Name, CancellationToken.None).DefaultTimeout(TestConstants.DefaultOrchestratorTestTimeout); 688await app.StopAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 714await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 740await app.StopAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 769await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 782await app.StopAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 809await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 818await app.StopAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 840await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 852await app.StopAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 869await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 882await app.StopAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 898await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 912await app.StopAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 928await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 941await app.StopAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 954await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 1015var ex = await Assert.ThrowsAsync<InvalidOperationException>(async () => await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout)); 1034var ex = await Assert.ThrowsAsync<InvalidOperationException>(async () => await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout)); 1056await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 1099await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 1105await app.WaitForTextAsync("Content root path:", resourceName: testProgram.ServiceABuilder.Resource.Name).DefaultTimeout(TestConstants.LongTimeoutDuration); 1168await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 1171await app.WaitForTextAsync("Application started.").DefaultTimeout(TestConstants.DefaultOrchestratorTestTimeout); 1194await app.StopAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 1218await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 1221await app.WaitForTextAsync("Application started.").DefaultTimeout(TestConstants.DefaultOrchestratorTestTimeout); 1248await app.StopAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 1265var ex = await Assert.ThrowsAsync<InvalidOperationException>(async () => await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout)); 1288await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 1320await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 1322await kubernetesLifecycle.HooksCompleted.DefaultTimeout(TestConstants.DefaultOrchestratorTestTimeout);
Eventing\DistributedApplicationBuilderEventingTests.cs (15)
39await blockAssertionTcs.Task.DefaultTimeout(); 42await pendingPublish.DefaultTimeout(); 72await Task.WhenAll(blockAssertionSub1.Task, blockAssertionSub2.Task).DefaultTimeout(); 75await pendingPublish.DefaultTimeout(); 102await builder.Eventing.PublishAsync(new DummyEvent(), EventDispatchBehavior.NonBlockingConcurrent).DefaultTimeout(); 105await Task.WhenAll(blockAssertionSub1.Task, blockAssertionSub2.Task).DefaultTimeout(); 137await builder.Eventing.PublishAsync(new DummyEvent(), EventDispatchBehavior.NonBlockingSequential).DefaultTimeout(); 141await blockAssert1.Task.DefaultTimeout(); 154await blockAssert2.Task.DefaultTimeout(); 160await blockAssert3.Task.DefaultTimeout(); 190await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestTimeout); 192await beforeResourceStartedTcs.Task.DefaultTimeout(); 194await app.StopAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 217await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestTimeout); 222await app.StopAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout);
Health\ResourceHealthCheckServiceTests.cs (37)
31await app.StartAsync().DefaultTimeout(); 36}).DefaultTimeout(); 71await app.StartAsync().DefaultTimeout(); 76}).DefaultTimeout(); 95await app.StopAsync().DefaultTimeout(); 114await app.StartAsync().DefaultTimeout(); 119}).DefaultTimeout(); 135await app.StopAsync().DefaultTimeout(); 161await app.StartAsync().DefaultTimeout(); 184await monitorStoppedTcs.Task.DefaultTimeout(); 202await app.StopAsync().DefaultTimeout(); 227await app.StartAsync(abortTokenSource.Token).DefaultTimeout(); 232}).DefaultTimeout(); 268await app.StartAsync(abortTokenSource.Token).DefaultTimeout(); 273}).DefaultTimeout(); 285await app.StopAsync(abortTokenSource.Token).DefaultTimeout(); 311await app.StartAsync(abortTokenSource.Token).DefaultTimeout(); 316}).DefaultTimeout(); 317await app.ResourceNotifications.WaitForResourceAsync(resource.Resource.Name, KnownResourceStates.Running, abortTokenSource.Token).DefaultTimeout(); 327await app.StopAsync(abortTokenSource.Token).DefaultTimeout(); 352}).DefaultTimeout(); 357await pendingStart.DefaultTimeout(); 378var pendingStart = app.StartAsync().DefaultTimeout(); 383}).DefaultTimeout(); 395await app.StopAsync().DefaultTimeout(); 424var pendingStart = app.StartAsync().DefaultTimeout(TestConstants.LongTimeoutDuration); 445}).DefaultTimeout(); 453await app.StopAsync().DefaultTimeout(); 482var pendingStart = app.StartAsync().DefaultTimeout(); 490}).DefaultTimeout(); 507await app.StopAsync().DefaultTimeout(); 541}).DefaultTimeout(); 549}).DefaultTimeout(); 580await app.StartAsync().DefaultTimeout(); 585}).DefaultTimeout(); 626await app.StartAsync().DefaultTimeout(); 631}).DefaultTimeout();
HealthCheckTests.cs (5)
104await rns.WaitForResourceAsync(resource.Resource.Name, KnownResourceStates.Running).DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 106await rns.WaitForResourceAsync(dependentResource.Resource.Name, KnownResourceStates.Waiting).DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 112await rns.WaitForResourceAsync(dependentResource.Resource.Name, KnownResourceStates.Running).DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 114await pendingStart.DefaultTimeout(TestConstants.DefaultOrchestratorTestTimeout); 116await app.StopAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestTimeout);
Orchestrator\ApplicationOrchestratorTests.cs (6)
60await watchResourceTask.DefaultTimeout(); 107await watchResourceTask.DefaultTimeout(); 214await watchResourceTask.DefaultTimeout(); 274await watchResourceTask.DefaultTimeout(); 321await watchResourceTask.DefaultTimeout(); 434await watchResourceTask.DefaultTimeout();
ProjectResourceTests.cs (2)
51await File.WriteAllTextAsync(projectFilePath, csProjContent).DefaultTimeout(); 54await File.WriteAllTextAsync(launchSettingsFilePath, launchSettingsContent).DefaultTimeout();
Publishing\PublishingActivityProgressReporterTests.cs (1)
488await reporter.CompleteInteractionAsync(promptId, responses, CancellationToken.None).DefaultTimeout();
ResourceLoggerServiceTests.cs (10)
28await subsLoop.DefaultTimeout(); 47await subsLoop.DefaultTimeout(); 69await subsLoop.DefaultTimeout(); 109await subsLoop.DefaultTimeout(); 128await subsLoop.DefaultTimeout(); 141await subsLoop.DefaultTimeout(); 165await subsLoop.DefaultTimeout(); 186await subsLoop.DefaultTimeout(); 204await subsLoop.DefaultTimeout(); 230await subsLoop.DefaultTimeout();
ResourceNotificationTests.cs (25)
71await notificationService.PublishUpdateAsync(resource, state => state with { Properties = state.Properties.Add(new("A", "value")) }).DefaultTimeout(); 73await notificationService.PublishUpdateAsync(resource, state => state with { Properties = state.Properties.Add(new("B", "value")) }).DefaultTimeout(); 124await notificationService.PublishUpdateAsync(resource1, state => state with { Properties = state.Properties.Add(new("A", "value")) }).DefaultTimeout(); 126await notificationService.PublishUpdateAsync(resource2, state => state with { Properties = state.Properties.Add(new("B", "value")) }).DefaultTimeout(); 128await notificationService.PublishUpdateAsync(resource1, "replica1", state => state with { Properties = state.Properties.Add(new("C", "value")) }).DefaultTimeout(); 165await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 166await waitTask.DefaultTimeout(); 181await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 182await waitTask.DefaultTimeout(); 195await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 211await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = KnownResourceStates.Running }).DefaultTimeout(); 212await waitTask.DefaultTimeout(); 226await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeOtherState" }).DefaultTimeout(); 241await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeOtherState" }).DefaultTimeout(); 258await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 260await waitTask.DefaultTimeout(); 320await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 331await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 341await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "NewState" }).DefaultTimeout(); 351await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = null }).DefaultTimeout(); 361await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "" }).DefaultTimeout(); 371await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = " " }).DefaultTimeout(); 389await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { CreationTimeStamp = createdDate }).DefaultTimeout(); 390await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 391await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { ExitCode = 0 }).DefaultTimeout();
VersionChecking\VersionCheckServiceTests.cs (6)
34await service.ExecuteTask!.DefaultTimeout(); 57await service.ExecuteTask!.DefaultTimeout(); 89await service.ExecuteTask!.DefaultTimeout(); 128await service.ExecuteTask!.DefaultTimeout(); 149await service.ExecuteTask!.DefaultTimeout(); 178await service.ExecuteTask!.DefaultTimeout();