Skip to content

Commit c274c63

Browse files
committed
fixes flakiness testLeaderElectionController
Signed-off-by: yue9944882 <[email protected]>
1 parent f2677ee commit c274c63

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

extended/src/test/java/io/kubernetes/client/extended/controller/LeaderElectingControllerTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,9 @@ public void testLeaderElectingController() throws ApiException, InterruptedExcep
6767

6868
doAnswer(
6969
invocationOnMock -> {
70+
record.set(invocationOnMock.getArgument(0));
7071
apiClientSem.release();
71-
return false;
72+
return true;
7273
})
7374
.when(mockLock)
7475
.update(any());

0 commit comments

Comments
 (0)