Skip to content

Commit

Permalink
Fix flaky smoke tests (#7628)
Browse files Browse the repository at this point in the history
fix duplicate installed status sent
add more timeout for control server
  • Loading branch information
jpbempel authored Sep 17, 2024
1 parent 51ac6c4 commit 1429d59
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,6 @@ private void recordInstrumentationProgress(
return;
}
instrumentationResults.put(definition.getProbeId().getEncodedId(), instrumentationResult);
if (instrumentationResult.isInstalled()) {
sink.addInstalled(definition.getProbeId());
} else if (instrumentationResult.isBlocked()) {
sink.addBlocked(definition.getProbeId());
}
}

private void retransformClasses(List<Class<?>> classesToBeTransformed) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ void setup(TestInfo testInfo) throws Exception {
@Override
@AfterEach
void teardown() throws Exception {
stopApp(appUrl);
if (appUrl != null) {
stopApp(appUrl);
}
controlServer.shutdown();
super.teardown();
}
Expand Down Expand Up @@ -150,7 +152,7 @@ protected void startApp() throws IOException {
}

protected String waitForAppStartedAndGetUrl() throws InterruptedException, EOFException {
RecordedRequest recordedRequest = controlServer.takeRequest(10, TimeUnit.SECONDS);
RecordedRequest recordedRequest = controlServer.takeRequest(30, TimeUnit.SECONDS);
assertNotNull(recordedRequest);
String appUrl = recordedRequest.getBody().readUtf8Line();
LOG.info("AppUrl = " + appUrl);
Expand Down

0 comments on commit 1429d59

Please sign in to comment.