MINOR: Wait for embedded clusters to start before using them in Connect OffsetsApiIntegrationTest (#16286)

Reviewers: Greg Harris <greg.harris@aiven.io>
This commit is contained in:
Chris Egerton 2024-06-11 23:15:07 +02:00 committed by GitHub
parent 8b6013f851
commit 2fa2c72581
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 0 deletions

View File

@ -143,6 +143,15 @@ public class OffsetsApiIntegrationTest {
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;
});
}