Skip to content

Commit 0cef811

Browse files
committed
chore: Add debugging information for flaky test.
1 parent 11bbe9c commit 0cef811

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/test/java/com/launchdarkly/openfeature/serverprovider/LifeCycleTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,14 @@ public void itEmitsReadyEvents() throws ExecutionException, InterruptedException
153153
});
154154

155155
OpenFeatureAPI.getInstance().on(ProviderEvent.PROVIDER_STALE, (detail) -> {
156+
System.out.println("GOT UNEXPECTED PROVIDER_STALE");
157+
System.out.println(detail.getMessage());
156158
staleCount.getAndIncrement();
157159
});
158160

159161
OpenFeatureAPI.getInstance().on(ProviderEvent.PROVIDER_ERROR, (detail) -> {
162+
System.out.println("GOT UNEXPECTED PROVIDER_ERROR");
163+
System.out.println(detail.getMessage());
160164
errorCount.getAndIncrement();
161165
});
162166

0 commit comments

Comments
 (0)