98 references to DefaultTimeout
Aspire.Hosting.Tests (98)
AddParameterTests.cs (4)
151var paramManifest = await ManifestUtils.GetManifest(appModel.Resources.OfType<ParameterResource>().Single(r => r.Name == "pass")).DefaultTimeout(); 201var paramManifest = await ManifestUtils.GetManifest(appModel.Resources.OfType<ParameterResource>().Single(r => r.Name == "pass")).DefaultTimeout(); 259var paramManifest = await ManifestUtils.GetManifest(appModel.Resources.OfType<ParameterResource>().Single(r => r.Name == "pass")).DefaultTimeout(); 314var paramManifest = await ManifestUtils.GetManifest(appModel.Resources.OfType<ParameterResource>().Single(r => r.Name == "val")).DefaultTimeout();
Dashboard\DashboardResourceTests.cs (1)
518var manifest = await ManifestUtils.GetManifestOrNull(dashboard).DefaultTimeout();
Dashboard\DashboardServiceTests.cs (5)
55var exceedLimitUpdate = await writer.ReadNextAsync().DefaultTimeout(); 59var longLinesUpdate1 = await writer.ReadNextAsync().DefaultTimeout(); 64var longLinesUpdate2 = await writer.ReadNextAsync().DefaultTimeout(); 113}).DefaultTimeout(); 128var update = await writer.ReadNextAsync().DefaultTimeout();
Dashboard\ResourcePublisherTests.cs (1)
48var change = Assert.Single(await tcs.Task.DefaultTimeout());
DistributedApplicationTests.cs (29)
60}).DefaultTimeout(); 101}).DefaultTimeout(); 158var appModel = await tcs.Task.DefaultTimeout(); 200await Task.WhenAll(clientA.GetStringAsync("/pid"), clientC.GetStringAsync("/pid")).DefaultTimeout(TestConstants.LongTimeoutDuration); 213var pidText = await clientB.GetStringAsync(url).DefaultTimeout(); 252var list = await s.ListAsync<Container>().DefaultTimeout(); 289var redisContainer = await KubernetesHelper.GetResourceByNameMatchAsync<Container>(kubernetes, containerPattern, r => r.Status?.State == ContainerState.Running, token).DefaultTimeout(TestConstants.LongTimeoutDuration); 294redisContainer = await KubernetesHelper.GetResourceByNameMatchAsync<Container>(kubernetes, containerPattern, r => r.Status?.State == ContainerState.Exited, token).DefaultTimeout(TestConstants.LongTimeoutDuration); 323var serviceA = await KubernetesHelper.GetResourceByNameMatchAsync<Executable>(kubernetes, executablePattern, r => r.Status?.State == ExecutableState.Running).DefaultTimeout(TestConstants.LongTimeoutDuration); 328serviceA = await KubernetesHelper.GetResourceByNameMatchAsync<Executable>(kubernetes, executablePattern, r => r.Status?.State == ExecutableState.Finished).DefaultTimeout(TestConstants.LongTimeoutDuration); 333serviceA = await KubernetesHelper.GetResourceByNameMatchAsync<Executable>(kubernetes, executablePattern, r => r.Status?.State == ExecutableState.Running).DefaultTimeout(TestConstants.LongTimeoutDuration); 364var redisContainer = await KubernetesHelper.GetResourceByNameMatchAsync<Container>(kubernetes, $"redis0-{ReplicaIdRegex}-{suffix}", r => r.Status?.EffectiveEnv is not null).DefaultTimeout(); 367var serviceA = await KubernetesHelper.GetResourceByNameAsync<Executable>(kubernetes, "servicea", suffix!, r => r.Status?.EffectiveEnv is not null).DefaultTimeout(); 370var nodeApp = await KubernetesHelper.GetResourceByNameMatchAsync<Executable>(kubernetes, $"nodeapp-{ReplicaIdRegex}-{suffix}", r => r.Status?.EffectiveEnv is not null).DefaultTimeout(); 417var aspireDashboard = await KubernetesHelper.GetResourceByNameMatchAsync<Executable>(kubernetes, $"aspire-dashboard-{ReplicaIdRegex}-{suffix}", r => r.Status?.EffectiveEnv is not null).DefaultTimeout(); 456var aspireDashboard = await KubernetesHelper.GetResourceByNameMatchAsync<Executable>(kubernetes, $"aspire-dashboard-{ReplicaIdRegex}-{suffix}", r => r.Status?.EffectiveEnv is not null).DefaultTimeout(); 490r => r.Status?.State == ContainerState.FailedToStart && (r.Status?.Message.Contains("bob") ?? false)).DefaultTimeout(TestConstants.LongTimeoutDuration); 520$"redis-cli-{ReplicaIdRegex}-{suffix}", r => r.Spec.VolumeMounts != null).DefaultTimeout(); 549$"redis-cli-{ReplicaIdRegex}-{suffix}", r => r.Spec.VolumeMounts != null).DefaultTimeout(); 579$"redis-cli-{ReplicaIdRegex}-{suffix}", r => r.Spec.VolumeMounts != null).DefaultTimeout(); 659var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => app.StartAsync()).DefaultTimeout(); 678var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => app.StartAsync()).DefaultTimeout(); 703var result = await client.GetStringAsync("pid").DefaultTimeout(TestConstants.LongTimeoutDuration); 715}).DefaultTimeout(); 773var value = await client.GetStringAsync($"{httpsEndpoint}urls", token).DefaultTimeout(); 813await clientA.GetStringAsync("/").DefaultTimeout(); 816var exeList = await s.ListAsync<Executable>().DefaultTimeout(); 824var list = await s.ListAsync<Container>().DefaultTimeout(); 851var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => app.StartAsync()).DefaultTimeout();
ExecutableResourceTests.cs (1)
51var manifest = await ManifestUtils.GetManifest(exe2.Resource).DefaultTimeout();
Health\ResourceHealthCheckServiceTests.cs (11)
24await using var app = await builder.BuildAsync().DefaultTimeout(); 34var startingEvent = await rns.WaitForResourceAsync("resource", e => e.Snapshot.State?.Text == KnownResourceStates.Starting).DefaultTimeout(); 42var healthyEvent = await rns.WaitForResourceHealthyAsync("resource").DefaultTimeout(); 58await using var app = await builder.BuildAsync().DefaultTimeout(); 68var startingEvent = await rns.WaitForResourceAsync("resource", e => e.Snapshot.State?.Text == KnownResourceStates.Starting).DefaultTimeout(); 76var runningEvent = await rns.WaitForResourceAsync("resource", e => e.Snapshot.State?.Text == KnownResourceStates.Running).DefaultTimeout(); 79await rns.WaitForResourceHealthyAsync("resource").DefaultTimeout(); 112await rns.WaitForResourceHealthyAsync(resource.Resource.Name, abortTokenSource.Token).DefaultTimeout(); 197var @event = await blockAssert.Task.DefaultTimeout(); 399var parentReadyEvent = await parentReady.Task.DefaultTimeout(); 402var childReadyEvent = await childReady.Task.DefaultTimeout();
HealthCheckTests.cs (4)
32}).DefaultTimeout(); 54}).DefaultTimeout(); 94await rns.WaitForResourceHealthyAsync(resource.Resource.Name).DefaultTimeout(TestConstants.LongTimeoutDuration); 120}).DefaultTimeout();
KestrelConfigTests.cs (4)
177var manifest = await ManifestUtils.GetManifest(resource).DefaultTimeout(); 221var manifest = await ManifestUtils.GetManifest(resource).DefaultTimeout(); 292var manifest = await ManifestUtils.GetManifest(resource).DefaultTimeout(); 314var manifest = await ManifestUtils.GetManifest(resource).DefaultTimeout();
ManifestGenerationTests.cs (2)
100var redisManifest = await ManifestUtils.GetManifest(redis.Resource).DefaultTimeout(); 537var manifest = await ManifestUtils.GetManifest(param.Resource).DefaultTimeout();
ProjectResourceTests.cs (3)
21var projectDetails = await PrepareProjectWithMalformedLaunchSettingsAsync().DefaultTimeout(); 481var manifest = await ManifestUtils.GetManifest(resource).DefaultTimeout(); 531var manifest = await ManifestUtils.GetManifest(resource).DefaultTimeout();
PublishAsConnectionStringTests.cs (1)
21var manifest = await ManifestUtils.GetManifest(redis.Resource).DefaultTimeout();
PublishAsDockerfileTests.cs (3)
22var manifest = await ManifestUtils.GetManifest(frontend.Resource).DefaultTimeout(); 57var manifest = await ManifestUtils.GetManifest(frontend.Resource).DefaultTimeout(); 95var manifest = await ManifestUtils.GetManifest(frontend.Resource).DefaultTimeout();
ResourceLoggerServiceTests.cs (12)
33var allLogs = await logsLoop.DefaultTimeout(); 46allLogs = await logsLoop.DefaultTimeout(); 77var allLogs = await logsLoop.DefaultTimeout(); 88allLogs = await logsLoop.DefaultTimeout(); 114var allLogs = await logsLoop.DefaultTimeout(); 127allLogs = await logsLoop.DefaultTimeout(); 141allLogs = await logsLoop.DefaultTimeout(); 166var allLogs = await logsLoop.DefaultTimeout(); 175allLogs = await logsLoop.DefaultTimeout(); 185allLogs = await logsLoop.DefaultTimeout(); 204allLogs = await logsLoop.DefaultTimeout(); 238var allLogs = await logsLoop.DefaultTimeout();
ResourceNotificationTests.cs (5)
75var values = await enumerableTask.DefaultTimeout(); 130var values = await enumerableTask.DefaultTimeout(); 260}).DefaultTimeout(); 275}).DefaultTimeout(); 292}).DefaultTimeout();
WithEndpointTests.cs (9)
272var manifest = await ManifestUtils.GetManifest(container.Resource).DefaultTimeout(); 300var manifest = await ManifestUtils.GetManifest(container.Resource).DefaultTimeout(); 327var manifest = await ManifestUtils.GetManifest(container.Resource).DefaultTimeout(); 354var manifest = await ManifestUtils.GetManifest(container.Resource).DefaultTimeout(); 381var manifest = await ManifestUtils.GetManifest(container.Resource).DefaultTimeout(); 408var manifest = await ManifestUtils.GetManifest(container.Resource).DefaultTimeout(); 435var manifest = await ManifestUtils.GetManifest(container.Resource).DefaultTimeout(); 466var manifest = await ManifestUtils.GetManifest(project.Resource).DefaultTimeout(); 536var manifest = await ManifestUtils.GetManifest(project.Resource).DefaultTimeout();
WithEnvironmentTests.cs (1)
150)).DefaultTimeout();
WithReferenceTests.cs (2)
140}).DefaultTimeout(); 173}).DefaultTimeout();