Skip to content

Commit 24d5fe9

Browse files
committed
fix: leader election e2e test
Signed-off-by: Attila Mészáros <[email protected]>
1 parent 0710c6b commit 24d5fe9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sample-operators/leader-election/src/test/java/io/javaoperatorsdk/operator/sample/LeaderElectionE2E.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ private void deployOperatorsInOrder(String yamlFilePrefix) {
145145
applyResources("k8s/" + yamlFilePrefix + "operator-instance-2.yaml");
146146
await().atMost(Duration.ofSeconds(POD_STARTUP_TIMEOUT)).untilAsserted(() -> {
147147
var pod = client.pods().inNamespace(namespace).withName(OPERATOR_2_POD_NAME).get();
148+
assertThat(pod.getStatus().getContainerStatuses()).isNotEmpty();
148149
assertThat(pod.getStatus().getContainerStatuses().get(0).getReady()).isTrue();
149150
});
150151
}

0 commit comments

Comments
 (0)