Skip to content

Commit 702c5bd

Browse files
authored
Merge pull request #3942 from brendandburns/flake
Deflake a test
2 parents db92e9d + 1592c47 commit 702c5bd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

+4
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,10 @@ void controllerKeepsWorkingWhenReconcilerAbortsWithRuntimeException()
151151
AtomicBoolean resumed = new AtomicBoolean(false);
152152
List<Request> finishedRequests = new ArrayList<>();
153153
final Semaphore latch = new Semaphore(1);
154+
155+
// Grab the latch to block until an event is handled once.
156+
latch.acquire();
157+
154158
DefaultController testController =
155159
new DefaultController(
156160
"",

0 commit comments

Comments
 (0)