Increased timeout for better tests stability when executed in parallel

This commit is contained in:
Marcin Grzejszczak
2020-11-25 14:48:53 +01:00
parent f027196b84
commit 4bebf0a501
2 changed files with 4 additions and 4 deletions

View File

@@ -74,7 +74,7 @@ public class BraveZipkinAutoConfigurationTests
context.getBean(Tracer.class).nextSpan().name("foo").tag("foo", "bar").start().end();
context.getBean(ZipkinAutoConfiguration.REPORTER_BEAN_NAME, AsyncReporter.class).flush();
Awaitility.await().atMost(250, TimeUnit.MILLISECONDS)
Awaitility.await().atMost(5, TimeUnit.SECONDS)
.untilAsserted(() -> then(this.server.getRequestCount()).isGreaterThan(1));
Awaitility.await().atMost(5, TimeUnit.SECONDS).untilAsserted(() -> {
@@ -85,7 +85,7 @@ public class BraveZipkinAutoConfigurationTests
MultipleReportersConfig.OtherSender sender = context
.getBean(MultipleReportersConfig.OtherSender.class);
Awaitility.await().atMost(250, TimeUnit.MILLISECONDS)
Awaitility.await().atMost(5, TimeUnit.SECONDS)
.untilAsserted(() -> then(sender.isSpanSent()).isTrue());
});
}

View File

@@ -207,7 +207,7 @@ public abstract class WebClientTests {
try (Tracer.SpanInScope ws = this.tracer.withSpan(span)) {
this.webClient.get().uri("http://localhost:" + this.port + "/traceid").retrieve().bodyToMono(String.class)
.block(Duration.ofMillis(100));
.block(Duration.ofSeconds(5));
}
finally {
span.end();
@@ -356,7 +356,7 @@ public abstract class WebClientTests {
return exchange.exchange(request);
}).build().get().uri("http://localhost:" + this.port + "/traceid").retrieve().bodyToMono(String.class)
.block(Duration.ofMillis(100));
.block(Duration.ofSeconds(5));
}
finally {
span.end();