From 63ea03cdc0aea436a598d016d9e4033e89c080ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Paj=C4=85k?= Date: Wed, 27 Jul 2022 11:39:43 +0200 Subject: [PATCH] Stabilize SmokeTests.PrometheusExporter --- test/IntegrationTests/SmokeTests.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/IntegrationTests/SmokeTests.cs b/test/IntegrationTests/SmokeTests.cs index b8a3d04508..965f98b692 100644 --- a/test/IntegrationTests/SmokeTests.cs +++ b/test/IntegrationTests/SmokeTests.cs @@ -164,7 +164,11 @@ public async Task PrometheusExporter() { var assert = async () => { - var response = await new HttpClient().GetAsync(defaultPrometheusMetricsEndpoint); + var httpClient = new HttpClient + { + Timeout = 5.Seconds() + }; + var response = await httpClient.GetAsync(defaultPrometheusMetricsEndpoint); response.StatusCode.Should().Be(HttpStatusCode.OK); var content = await response.Content.ReadAsStringAsync();