Skip to content

Commit

Permalink
Merge branch 'main' into fix-1176-drop-deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
wind57 committed Feb 10, 2025
2 parents 72996b2 + 8459a2f commit 30dd6a6
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import java.time.Duration;

import org.awaitility.Awaitility;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
Expand Down Expand Up @@ -76,7 +77,9 @@ void shouldStart() {
assertThat(leaderInitiator.isRunning()).isTrue();
verify(mockFabric8LeaderRecordWatcher).start();
verify(mockFabric8PodReadinessWatcher).start();
verify(mockFabric8LeadershipController, atLeastOnce()).update();

Awaitility.await().untilAsserted(() -> verify(mockFabric8LeadershipController, atLeastOnce()).update());

}

@Test
Expand Down

0 comments on commit 30dd6a6

Please sign in to comment.