Skip to content

Commit

Permalink
Increase timeouts on DynamicConfigSmokeTest
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasKunz committed Jan 21, 2025
1 parent 35aca46 commit b0cf028
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public static void end() {
@AfterEach
public void endTest() throws InterruptedException {
doRequest(getUrl("/dynamicconfig/reset"), okResponseBody("reset"));
Thread.sleep(500L); // give the reset time to be applied
Thread.sleep(1500L); // give the reset time to be applied
}

@Test
Expand All @@ -68,14 +68,14 @@ public void flipSending() throws InterruptedException {
.containsOnly("GET /dynamicconfig/flipSending", "DynamicConfigController.flipSending");
ByteString firstTraceID = spans.get(0).getTraceId();

Thread.sleep(1000L); // give the flip time to be applied
Thread.sleep(2000L); // give the flip time to be applied

doRequest(getUrl("/dynamicconfig/flipSending"), okResponseBody("restarted"));
traces = waitForTraces();
spans = getSpans(traces).dropWhile(span -> span.getTraceId().equals(firstTraceID)).toList();
assertThat(spans).hasSize(0);

Thread.sleep(1000L); // give the flip time to be applied
Thread.sleep(2000L); // give the flip time to be applied

doRequest(getUrl("/dynamicconfig/flipSending"), okResponseBody("stopped"));
traces = waitForTraces();
Expand Down

0 comments on commit b0cf028

Please sign in to comment.