239 references to DefaultTimeout
Aspire.Hosting.Tests (239)
AppHostSmokeTests.cs (2)
60await host.StartAsync().DefaultTimeout(); 61await host.StopAsync().DefaultTimeout();
Dashboard\DashboardLifecycleHookTests.cs (4)
46await hook.OnBeforeStartAsync(new BeforeStartEvent(new TestServiceProvider(), model), CancellationToken.None).DefaultTimeout(); 48await resourceNotificationService.PublishUpdateAsync(model.Resources.Single(), s => s).DefaultTimeout(); 89await hook.OnBeforeStartAsync(new BeforeStartEvent(new TestServiceProvider(), model), CancellationToken.None).DefaultTimeout(); 137await hook.OnBeforeStartAsync(new BeforeStartEvent(new TestServiceProvider(), model), CancellationToken.None).DefaultTimeout();
Dashboard\DashboardResourceTests.cs (17)
43await app.ExecuteBeforeStartHooksAsync(default).DefaultTimeout(); 71await app.ExecuteBeforeStartHooksAsync(default).DefaultTimeout(); 105await app.ExecuteBeforeStartHooksAsync(default).DefaultTimeout(); 207await app.ExecuteBeforeStartHooksAsync(default).DefaultTimeout(); 241await app.ExecuteBeforeStartHooksAsync(default).DefaultTimeout(); 282await app.ExecuteBeforeStartHooksAsync(default).DefaultTimeout(); 321await app.ExecuteBeforeStartHooksAsync(default).DefaultTimeout(); 357await app.ExecuteBeforeStartHooksAsync(default).DefaultTimeout(); 395await app.ExecuteBeforeStartHooksAsync(default).DefaultTimeout(); 441await app.ExecuteBeforeStartHooksAsync(default).DefaultTimeout(); 468await app.ExecuteBeforeStartHooksAsync(default).DefaultTimeout(); 484await app.ExecuteBeforeStartHooksAsync(default).DefaultTimeout(); 549await app.ExecuteBeforeStartHooksAsync(default).DefaultTimeout(); 560await resourceNotificationService.PublishUpdateAsync(dashboard, "aspire-dashboard-0", s => s with { State = "Running" }).DefaultTimeout(); 563await watchForLogSubs.DefaultTimeout(); 589await app.DisposeAsync().AsTask().DefaultTimeout(); 601await app.ExecuteBeforeStartHooksAsync(default).DefaultTimeout();
Dashboard\DashboardServiceTests.cs (7)
85await task.DefaultTimeout(); 131await task.DefaultTimeout(); 172}).DefaultTimeout(); 210await CancelTokenAndAwaitTask(cts, task).DefaultTimeout(); 283await CancelTokenAndAwaitTask(cts, task).DefaultTimeout(); 330await CancelTokenAndAwaitTask(cts, task).DefaultTimeout(); 389await CancelTokenAndAwaitTask(cts, task).DefaultTimeout();
Dashboard\ResourcePublisherTests.cs (7)
51await cts.CancelAsync().DefaultTimeout(); 55await task.DefaultTimeout(); 104await cts.CancelAsync().DefaultTimeout(); 130await cts.CancelAsync().DefaultTimeout(); 150await cts.CancelAsync().DefaultTimeout(); 171await cts.CancelAsync().DefaultTimeout(); 179await task.DefaultTimeout();
Dcp\DcpExecutorTests.cs (2)
106await watchResourceTask.DefaultTimeout(); 1158await tcs.Task.DefaultTimeout();
Dcp\DcpHostNotificationTests.cs (6)
80await dcpHost.EnsureDcpContainerRuntimeAsync(CancellationToken.None).DefaultTimeout(); 129await dcpHost.EnsureDcpContainerRuntimeAsync(CancellationToken.None).DefaultTimeout(); 184await dcpHost.EnsureDcpContainerRuntimeAsync(CancellationToken.None).DefaultTimeout(); 239await dcpHost.EnsureDcpContainerRuntimeAsync(CancellationToken.None).DefaultTimeout(); 289await dcpHost.EnsureDcpContainerRuntimeAsync(CancellationToken.None).DefaultTimeout(); 357await dcpHost.EnsureDcpContainerRuntimeAsync(CancellationToken.None).DefaultTimeout();
DistributedApplicationTests.cs (50)
158await restartResourceTask.DefaultTimeout(TestConstants.LongTimeoutDuration); 451await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 491await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 545await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 558await app.StopAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 603await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 624await app.StopAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 652await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 710await app.StopAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 736await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 740await app.StopAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 768await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 780await orchestrator.StopResourceAsync(redisContainer.Metadata.Name, token).DefaultTimeout(TestConstants.DefaultOrchestratorTestTimeout); 793await app.StopAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 811await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 817await orchestrator.StopResourceAsync(serviceA.Metadata.Name, CancellationToken.None).DefaultTimeout(TestConstants.DefaultOrchestratorTestTimeout); 822await orchestrator.StartResourceAsync(serviceA.Metadata.Name, CancellationToken.None).DefaultTimeout(TestConstants.DefaultOrchestratorTestTimeout); 827await app.StopAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 853await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 879await app.StopAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 904await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 915await app.StopAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 938await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 951await app.StopAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 978await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 987await app.StopAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 1009await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 1021await app.StopAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 1038await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 1051await app.StopAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 1067await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 1081await app.StopAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 1097await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 1110await app.StopAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 1123await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 1184var ex = await Assert.ThrowsAsync<InvalidOperationException>(async () => await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout)); 1203var ex = await Assert.ThrowsAsync<InvalidOperationException>(async () => await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout)); 1225await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 1268await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 1274await app.WaitForTextAsync("Content root path:", resourceName: testProgram.ServiceABuilder.Resource.Name).DefaultTimeout(TestConstants.LongTimeoutDuration); 1337await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 1340await app.WaitForTextAsync("Application started.").DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 1367await app.StopAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 1391await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 1394await app.WaitForTextAsync("Application started.").DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 1425await app.StopAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 1442var ex = await Assert.ThrowsAsync<InvalidOperationException>(async () => await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout)); 1465await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 1501await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 1503await kubernetesLifecycle.HooksCompleted.DefaultTimeout(TestConstants.DefaultOrchestratorTestTimeout);
Eventing\DistributedApplicationBuilderEventingTests.cs (18)
38await blockAssertionTcs.Task.DefaultTimeout(); 41await pendingPublish.DefaultTimeout(); 71await Task.WhenAll(blockAssertionSub1.Task, blockAssertionSub2.Task).DefaultTimeout(); 74await pendingPublish.DefaultTimeout(); 101await builder.Eventing.PublishAsync(new DummyEvent(), EventDispatchBehavior.NonBlockingConcurrent).DefaultTimeout(); 104await Task.WhenAll(blockAssertionSub1.Task, blockAssertionSub2.Task).DefaultTimeout(); 136await builder.Eventing.PublishAsync(new DummyEvent(), EventDispatchBehavior.NonBlockingSequential).DefaultTimeout(); 140await blockAssert1.Task.DefaultTimeout(); 153await blockAssert2.Task.DefaultTimeout(); 159await blockAssert3.Task.DefaultTimeout(); 189await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestTimeout); 191await beforeResourceStartedTcs.Task.DefaultTimeout(); 193await app.StopAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 216await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestTimeout); 221await app.StopAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 327await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestTimeout); 330await app.ResourceNotifications.WaitForResourceAsync("redis", KnownResourceStates.Running).DefaultTimeout(); 335await resourceStoppedTcs.Task.DefaultTimeout();
Health\ResourceHealthCheckServiceTests.cs (37)
30await app.StartAsync().DefaultTimeout(); 35}).DefaultTimeout(); 70await app.StartAsync().DefaultTimeout(); 75}).DefaultTimeout(); 94await app.StopAsync().DefaultTimeout(); 113await app.StartAsync().DefaultTimeout(); 118}).DefaultTimeout(); 134await app.StopAsync().DefaultTimeout(); 160await app.StartAsync().DefaultTimeout(); 183await monitorStoppedTcs.Task.DefaultTimeout(); 201await app.StopAsync().DefaultTimeout(); 226await app.StartAsync(abortTokenSource.Token).DefaultTimeout(); 231}).DefaultTimeout(); 267await app.StartAsync(abortTokenSource.Token).DefaultTimeout(); 272}).DefaultTimeout(); 284await app.StopAsync(abortTokenSource.Token).DefaultTimeout(); 310await app.StartAsync(abortTokenSource.Token).DefaultTimeout(); 315}).DefaultTimeout(); 316await app.ResourceNotifications.WaitForResourceAsync(resource.Resource.Name, KnownResourceStates.Running, abortTokenSource.Token).DefaultTimeout(); 326await app.StopAsync(abortTokenSource.Token).DefaultTimeout(); 351}).DefaultTimeout(); 356await pendingStart.DefaultTimeout(); 377var pendingStart = app.StartAsync().DefaultTimeout(); 382}).DefaultTimeout(); 394await app.StopAsync().DefaultTimeout(); 423var pendingStart = app.StartAsync().DefaultTimeout(TestConstants.LongTimeoutDuration); 444}).DefaultTimeout(); 452await app.StopAsync().DefaultTimeout(); 481var pendingStart = app.StartAsync().DefaultTimeout(); 489}).DefaultTimeout(); 506await app.StopAsync().DefaultTimeout(); 540}).DefaultTimeout(); 548}).DefaultTimeout(); 579await app.StartAsync().DefaultTimeout(); 584}).DefaultTimeout(); 625await app.StartAsync().DefaultTimeout(); 630}).DefaultTimeout();
HealthCheckTests.cs (5)
103await rns.WaitForResourceAsync(resource.Resource.Name, KnownResourceStates.Running).DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 105await rns.WaitForResourceAsync(dependentResource.Resource.Name, KnownResourceStates.Waiting).DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 111await rns.WaitForResourceAsync(dependentResource.Resource.Name, KnownResourceStates.Running).DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 113await pendingStart.DefaultTimeout(TestConstants.DefaultOrchestratorTestTimeout); 115await app.StopAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestTimeout);
InteractionServiceTests.cs (1)
910inputs: [new InputDto("Username", "testuser", InputType.Text)]).DefaultTimeout();
Orchestrator\ApplicationOrchestratorTests.cs (9)
66await watchResourceTask.DefaultTimeout(); 113await watchResourceTask.DefaultTimeout(); 220await watchResourceTask.DefaultTimeout(); 280await watchResourceTask.DefaultTimeout(); 327await watchResourceTask.DefaultTimeout(); 440await watchResourceTask.DefaultTimeout(); 719await watchResourceTask.DefaultTimeout(); 775await watchResourceTask.DefaultTimeout(); 824await watchResourceTask.DefaultTimeout();
ProjectResourceTests.cs (2)
58await File.WriteAllTextAsync(projectFilePath, csProjContent).DefaultTimeout(); 61await File.WriteAllTextAsync(launchSettingsFilePath, launchSettingsContent).DefaultTimeout();
Publishing\PipelineActivityReporterTests.cs (4)
471await reporter.CompleteInteractionAsync(promptId, responses, updateResponse: false, cancellationToken: CancellationToken.None).DefaultTimeout(); 499await reporter.CompleteInteractionAsync(promptId, responses, updateResponse: false, CancellationToken.None).DefaultTimeout(); 528await reporter.CompleteInteractionAsync(promptId, responses, updateResponse: false, CancellationToken.None).DefaultTimeout(); 568await reporter.CompleteInteractionAsync(notificationId, responses, updateResponse: false, CancellationToken.None).DefaultTimeout();
ResourceLoggerServiceTests.cs (10)
27await subsLoop.DefaultTimeout(); 46await subsLoop.DefaultTimeout(); 68await subsLoop.DefaultTimeout(); 108await subsLoop.DefaultTimeout(); 127await subsLoop.DefaultTimeout(); 140await subsLoop.DefaultTimeout(); 164await subsLoop.DefaultTimeout(); 185await subsLoop.DefaultTimeout(); 203await subsLoop.DefaultTimeout(); 229await subsLoop.DefaultTimeout();
ResourceNotificationTests.cs (34)
70await notificationService.PublishUpdateAsync(resource, state => state with { Properties = state.Properties.Add(new("A", "value")) }).DefaultTimeout(); 72await notificationService.PublishUpdateAsync(resource, state => state with { Properties = state.Properties.Add(new("B", "value")) }).DefaultTimeout(); 123await notificationService.PublishUpdateAsync(resource1, state => state with { Properties = state.Properties.Add(new("A", "value")) }).DefaultTimeout(); 125await notificationService.PublishUpdateAsync(resource2, state => state with { Properties = state.Properties.Add(new("B", "value")) }).DefaultTimeout(); 127await notificationService.PublishUpdateAsync(resource1, "replica1", state => state with { Properties = state.Properties.Add(new("C", "value")) }).DefaultTimeout(); 164await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 165await waitTask.DefaultTimeout(); 180await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 181await waitTask.DefaultTimeout(); 194await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 210await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = KnownResourceStates.Running }).DefaultTimeout(); 211await waitTask.DefaultTimeout(); 225await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeOtherState" }).DefaultTimeout(); 240await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeOtherState" }).DefaultTimeout(); 257await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 259await waitTask.DefaultTimeout(); 319await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 330await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 340await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "NewState" }).DefaultTimeout(); 350await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = null }).DefaultTimeout(); 360await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "" }).DefaultTimeout(); 370await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = " " }).DefaultTimeout(); 388await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { CreationTimeStamp = createdDate }).DefaultTimeout(); 389await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 390await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { ExitCode = 0 }).DefaultTimeout(); 470}).DefaultTimeout(); 476}).DefaultTimeout(); 521}).DefaultTimeout(); 557}).DefaultTimeout(); 585}).DefaultTimeout(); 592}).DefaultTimeout(); 631}).DefaultTimeout(); 655}).DefaultTimeout(); 664}).DefaultTimeout();
VersionChecking\VersionCheckServiceTests.cs (8)
37await service.ExecuteTask!.DefaultTimeout(); 60await service.ExecuteTask!.DefaultTimeout(); 92await service.ExecuteTask!.DefaultTimeout(); 131await service.ExecuteTask!.DefaultTimeout(); 173await service.ExecuteTask!.DefaultTimeout(); 177await service.ExecuteTask!.DefaultTimeout(); 207await service.ExecuteTask!.DefaultTimeout(); 236await service.ExecuteTask!.DefaultTimeout();
WithUrlsTests.cs (16)
74await tcs.Task.DefaultTimeout(); 97await tcs.Task.DefaultTimeout(); 150await tcs.Task.DefaultTimeout(); 174await tcs.Task.DefaultTimeout(); 200await tcs.Task.DefaultTimeout(); 228await tcs.Task.DefaultTimeout(); 261await tcs.Task.DefaultTimeout(); 304await tcs.Task.DefaultTimeout(); 327await tcs.Task.DefaultTimeout(); 357await tcs.Task.DefaultTimeout(); 725await tcs.Task.DefaultTimeout(); 754await tcs.Task.DefaultTimeout(); 782await tcs.Task.DefaultTimeout(); 830await tcs.Task.DefaultTimeout(); 860await tcs.Task.DefaultTimeout(); 890await tcs.Task.DefaultTimeout();