Skip to content

Commit

Permalink
MINOR: Wait for embedded clusters to start before using them in Conne…
Browse files Browse the repository at this point in the history
…ct OffsetsApiIntegrationTest (apache#16286)

Reviewers: Greg Harris <[email protected]>
  • Loading branch information
C0urante authored Jun 11, 2024
1 parent 8b6013f commit 2fa2c72
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,15 @@ private static EmbeddedConnectCluster createOrReuseConnectWithWorkerProps(Map<St

result.start();

try {
result.assertions().assertExactlyNumWorkersAreUp(
NUM_WORKERS,
"Workers did not complete startup in time"
);
} catch (InterruptedException e) {
throw new RuntimeException("Interrupted while awaiting cluster startup", e);
}

return result;
});
}
Expand Down

0 comments on commit 2fa2c72

Please sign in to comment.