138 references to DefaultTimeout
Aspire.Hosting.Tests (138)
Dashboard\DashboardLifecycleHookTests.cs (1)
50await resourceNotificationService.PublishUpdateAsync(model.Resources.Single(), s => s).DefaultTimeout();
Dashboard\DashboardResourceTests.cs (16)
44await app.ExecuteBeforeStartHooksAsync(default).DefaultTimeout(); 68await app.ExecuteBeforeStartHooksAsync(default).DefaultTimeout(); 99await app.ExecuteBeforeStartHooksAsync(default).DefaultTimeout(); 169await app.ExecuteBeforeStartHooksAsync(default).DefaultTimeout(); 205await app.ExecuteBeforeStartHooksAsync(default).DefaultTimeout(); 240await app.ExecuteBeforeStartHooksAsync(default).DefaultTimeout(); 272await app.ExecuteBeforeStartHooksAsync(default).DefaultTimeout(); 308await app.ExecuteBeforeStartHooksAsync(default).DefaultTimeout(); 351await app.ExecuteBeforeStartHooksAsync(default).DefaultTimeout(); 376await app.ExecuteBeforeStartHooksAsync(default).DefaultTimeout(); 392await app.ExecuteBeforeStartHooksAsync(default).DefaultTimeout(); 457await app.ExecuteBeforeStartHooksAsync(default).DefaultTimeout(); 468await resourceNotificationService.PublishUpdateAsync(dashboard, "aspire-dashboard-0", s => s with { State = "Running" }).DefaultTimeout(); 471await watchForLogSubs.DefaultTimeout(); 497await app.DisposeAsync().AsTask().DefaultTimeout(); 509await app.ExecuteBeforeStartHooksAsync(default).DefaultTimeout();
Dashboard\DashboardServiceTests.cs (2)
69await task.DefaultTimeout(); 107}).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();
DistributedApplicationTests.cs (31)
156await app.StartAsync().DefaultTimeout(); 194await app.StartAsync().DefaultTimeout(); 249await app.StartAsync().DefaultTimeout(); 283await app.StartAsync().DefaultTimeout(); 292await applicationExecutor.StopResourceAsync(redisContainer.Metadata.Name, token).DefaultTimeout(); 303await app.StopAsync().DefaultTimeout(); 320await app.StartAsync().DefaultTimeout(); 326await applicationExecutor.StopResourceAsync(serviceA.Metadata.Name, CancellationToken.None).DefaultTimeout(); 331await applicationExecutor.StartResourceAsync(serviceA.Metadata.Name, CancellationToken.None).DefaultTimeout(); 336await app.StopAsync().DefaultTimeout(); 361await app.StartAsync().DefaultTimeout(); 387await app.StopAsync().DefaultTimeout(); 414await app.StartAsync().DefaultTimeout(); 427await app.StopAsync().DefaultTimeout(); 453await app.StartAsync().DefaultTimeout(); 462await app.StopAsync().DefaultTimeout(); 484await app.StartAsync().DefaultTimeout(); 496await app.StopAsync().DefaultTimeout(); 513await app.StartAsync().DefaultTimeout(); 526await app.StopAsync().DefaultTimeout(); 542await app.StartAsync().DefaultTimeout(); 556await app.StopAsync().DefaultTimeout(); 572await app.StartAsync().DefaultTimeout(); 585await app.StopAsync().DefaultTimeout(); 598await app.StartAsync().DefaultTimeout(); 699await app.StartAsync().DefaultTimeout(); 741await app.StartAsync().DefaultTimeout(); 806await app.StartAsync().DefaultTimeout(); 809await app.WaitForTextAsync("Application started.").DefaultTimeout(); 834await app.StopAsync().DefaultTimeout(); 873await app.StartAsync().DefaultTimeout();
Eventing\DistributedApplicationBuilderEventingTests.cs (13)
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(); 191await app.StartAsync().DefaultTimeout(); 193await beforeResourceStartedTcs.Task.DefaultTimeout(); 195await app.StopAsync().DefaultTimeout();
Health\ResourceHealthCheckServiceTests.cs (28)
27await app.StartAsync().DefaultTimeout(); 32}).DefaultTimeout(); 45await app.StopAsync().DefaultTimeout(); 61await app.StartAsync().DefaultTimeout(); 66}).DefaultTimeout(); 81await app.StopAsync().DefaultTimeout(); 106await app.StartAsync(abortTokenSource.Token).DefaultTimeout(); 111}).DefaultTimeout(); 126await app.StopAsync(abortTokenSource.Token).DefaultTimeout(); 153await app.StartAsync(abortTokenSource.Token).DefaultTimeout(); 158}).DefaultTimeout(); 159await rns.WaitForResourceAsync(resource.Resource.Name, KnownResourceStates.Running, abortTokenSource.Token).DefaultTimeout(); 169await app.StopAsync(abortTokenSource.Token).DefaultTimeout(); 195}).DefaultTimeout(); 200await pendingStart.DefaultTimeout(); 201await app.StopAsync().DefaultTimeout(); 222var pendingStart = app.StartAsync().DefaultTimeout(); 227}).DefaultTimeout(); 239await app.StopAsync().DefaultTimeout(); 269var pendingStart = app.StartAsync().DefaultTimeout(TestConstants.LongTimeoutDuration); 291}).DefaultTimeout(); 299await app.StopAsync().DefaultTimeout(); 329var pendingStart = app.StartAsync().DefaultTimeout(); 336}).DefaultTimeout(); 353await app.StopAsync().DefaultTimeout(); 389}).DefaultTimeout(); 397}).DefaultTimeout(); 406await app.StopAsync().DefaultTimeout();
HealthCheckTests.cs (5)
88await rns.WaitForResourceAsync(resource.Resource.Name, KnownResourceStates.Running).DefaultTimeout(TestConstants.LongTimeoutDuration); 90await rns.WaitForResourceAsync(dependentResource.Resource.Name, KnownResourceStates.Waiting).DefaultTimeout(TestConstants.LongTimeoutDuration); 96await rns.WaitForResourceAsync(dependentResource.Resource.Name, KnownResourceStates.Running).DefaultTimeout(TestConstants.LongTimeoutDuration); 98await pendingStart.DefaultTimeout(); 100await app.StopAsync().DefaultTimeout();
ProjectResourceTests.cs (2)
50await File.WriteAllTextAsync(projectFilePath, csProjContent).DefaultTimeout(); 53await File.WriteAllTextAsync(launchSettingsFilePath, launchSettingsContent).DefaultTimeout();
ResourceLoggerServiceTests.cs (10)
26await subsLoop.DefaultTimeout(); 45await subsLoop.DefaultTimeout(); 67await subsLoop.DefaultTimeout(); 107await subsLoop.DefaultTimeout(); 126await subsLoop.DefaultTimeout(); 139await subsLoop.DefaultTimeout(); 163await subsLoop.DefaultTimeout(); 184await subsLoop.DefaultTimeout(); 202await subsLoop.DefaultTimeout(); 228await subsLoop.DefaultTimeout();
ResourceNotificationTests.cs (23)
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(); 302await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 313await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 323await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "NewState" }).DefaultTimeout(); 333await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = null }).DefaultTimeout(); 343await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "" }).DefaultTimeout(); 353await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = " " }).DefaultTimeout(); 371await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { CreationTimeStamp = createdDate }).DefaultTimeout(); 372await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 373await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { ExitCode = 0 }).DefaultTimeout();