198 references to DefaultTimeout
Aspire.Hosting.Tests (198)
AppHostSmokeTests.cs (2)
60await host.StartAsync().DefaultTimeout(); 61await host.StopAsync().DefaultTimeout();
Dashboard\DashboardLifecycleHookTests.cs (4)
46await hook.BeforeStartAsync(model, CancellationToken.None).DefaultTimeout(); 48await resourceNotificationService.PublishUpdateAsync(model.Resources.Single(), s => s).DefaultTimeout(); 89await hook.BeforeStartAsync(model, CancellationToken.None).DefaultTimeout(); 137await hook.BeforeStartAsync(model, CancellationToken.None).DefaultTimeout();
Dashboard\DashboardResourceTests.cs (16)
43await app.ExecuteBeforeStartHooksAsync(default).DefaultTimeout(); 71await app.ExecuteBeforeStartHooksAsync(default).DefaultTimeout(); 104await app.ExecuteBeforeStartHooksAsync(default).DefaultTimeout(); 178await app.ExecuteBeforeStartHooksAsync(default).DefaultTimeout(); 219await app.ExecuteBeforeStartHooksAsync(default).DefaultTimeout(); 258await app.ExecuteBeforeStartHooksAsync(default).DefaultTimeout(); 294await app.ExecuteBeforeStartHooksAsync(default).DefaultTimeout(); 332await app.ExecuteBeforeStartHooksAsync(default).DefaultTimeout(); 378await app.ExecuteBeforeStartHooksAsync(default).DefaultTimeout(); 405await app.ExecuteBeforeStartHooksAsync(default).DefaultTimeout(); 421await app.ExecuteBeforeStartHooksAsync(default).DefaultTimeout(); 486await app.ExecuteBeforeStartHooksAsync(default).DefaultTimeout(); 497await resourceNotificationService.PublishUpdateAsync(dashboard, "aspire-dashboard-0", s => s with { State = "Running" }).DefaultTimeout(); 500await watchForLogSubs.DefaultTimeout(); 526await app.DisposeAsync().AsTask().DefaultTimeout(); 538await app.ExecuteBeforeStartHooksAsync(default).DefaultTimeout();
Dashboard\DashboardServiceTests.cs (7)
84await task.DefaultTimeout(); 130await task.DefaultTimeout(); 171}).DefaultTimeout(); 209await CancelTokenAndAwaitTask(cts, task).DefaultTimeout(); 281await CancelTokenAndAwaitTask(cts, task).DefaultTimeout(); 327await CancelTokenAndAwaitTask(cts, task).DefaultTimeout(); 385await 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(); 1149await tcs.Task.DefaultTimeout();
DistributedApplicationTests.cs (44)
151await restartResourceTask.DefaultTimeout(TestConstants.LongTimeoutDuration); 434await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 472await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 526await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 539await app.StopAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 579await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 600await app.StopAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 628await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 640await orchestrator.StopResourceAsync(redisContainer.Metadata.Name, token).DefaultTimeout(TestConstants.DefaultOrchestratorTestTimeout); 653await app.StopAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 671await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 677await orchestrator.StopResourceAsync(serviceA.Metadata.Name, CancellationToken.None).DefaultTimeout(TestConstants.DefaultOrchestratorTestTimeout); 682await orchestrator.StartResourceAsync(serviceA.Metadata.Name, CancellationToken.None).DefaultTimeout(TestConstants.DefaultOrchestratorTestTimeout); 687await app.StopAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 713await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 739await app.StopAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 768await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 781await app.StopAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 808await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 817await app.StopAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 839await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 851await app.StopAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 868await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 881await app.StopAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 897await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 911await app.StopAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 927await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 940await app.StopAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 953await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 1014var ex = await Assert.ThrowsAsync<InvalidOperationException>(async () => await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout)); 1033var ex = await Assert.ThrowsAsync<InvalidOperationException>(async () => await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout)); 1055await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 1098await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 1104await app.WaitForTextAsync("Content root path:", resourceName: testProgram.ServiceABuilder.Resource.Name).DefaultTimeout(TestConstants.LongTimeoutDuration); 1167await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 1170await app.WaitForTextAsync("Application started.").DefaultTimeout(TestConstants.DefaultOrchestratorTestTimeout); 1197await app.StopAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 1221await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 1224await app.WaitForTextAsync("Application started.").DefaultTimeout(TestConstants.DefaultOrchestratorTestTimeout); 1255await app.StopAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 1272var ex = await Assert.ThrowsAsync<InvalidOperationException>(async () => await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout)); 1295await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 1327await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 1329await kubernetesLifecycle.HooksCompleted.DefaultTimeout(TestConstants.DefaultOrchestratorTestTimeout);
Eventing\DistributedApplicationBuilderEventingTests.cs (18)
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); 328await app.StartAsync().DefaultTimeout(TestConstants.DefaultOrchestratorTestTimeout); 331await app.ResourceNotifications.WaitForResourceAsync("redis", KnownResourceStates.Running).DefaultTimeout(); 336await 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);
Orchestrator\ApplicationOrchestratorTests.cs (6)
59await watchResourceTask.DefaultTimeout(); 106await watchResourceTask.DefaultTimeout(); 213await watchResourceTask.DefaultTimeout(); 273await watchResourceTask.DefaultTimeout(); 320await watchResourceTask.DefaultTimeout(); 433await watchResourceTask.DefaultTimeout();
ProjectResourceTests.cs (2)
50await File.WriteAllTextAsync(projectFilePath, csProjContent).DefaultTimeout(); 53await File.WriteAllTextAsync(launchSettingsFilePath, launchSettingsContent).DefaultTimeout();
Publishing\PublishingActivityReporterTests.cs (2)
487await reporter.CompleteInteractionAsync(promptId, responses, CancellationToken.None).DefaultTimeout(); 527await reporter.CompleteInteractionAsync(notificationId, responses, 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 (28)
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(); 469}).DefaultTimeout(); 475}).DefaultTimeout(); 519}).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();