From 2a2de912db274c64ba184adf9cfc25ad99329a9f Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Tue, 26 May 2026 22:49:08 +0000 Subject: [PATCH 1/9] test: fix flaky debugModeExpiresBasedOnServerTime test Add waitUntilInactive() calls after awaitRequest() in both debugModeExpires tests to ensure the flush worker has fully processed the response (including setting lastKnownPastTime) before proceeding to send the next event. Co-Authored-By: rlamb@launchdarkly.com <4955475+kinyoklion@users.noreply.github.com> --- .../sdk/internal/events/DefaultEventProcessorOutputTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/shared/internal/src/test/java/com/launchdarkly/sdk/internal/events/DefaultEventProcessorOutputTest.java b/lib/shared/internal/src/test/java/com/launchdarkly/sdk/internal/events/DefaultEventProcessorOutputTest.java index e534fa23..78c4a19e 100644 --- a/lib/shared/internal/src/test/java/com/launchdarkly/sdk/internal/events/DefaultEventProcessorOutputTest.java +++ b/lib/shared/internal/src/test/java/com/launchdarkly/sdk/internal/events/DefaultEventProcessorOutputTest.java @@ -258,6 +258,7 @@ public void debugModeExpiresBasedOnClientTimeIfClientTimeIsLaterThanServerTime() ep.sendEvent(identifyEvent(LDContext.create("otherUser"))); ep.flushBlocking(); // wait till flush is done so we know we received the first response, with the date es.awaitRequest(); + ep.waitUntilInactive(); // ensure the flush worker has finished processing the response (setting lastKnownPastTime) es.receivedParams.clear(); es.result = new EventSender.Result(true, false, null); @@ -289,6 +290,7 @@ public void debugModeExpiresBasedOnServerTimeIfServerTimeIsLaterThanClientTime() ep.sendEvent(identifyEvent(LDContext.create("otherUser"))); ep.flushBlocking(); // wait till flush is done so we know we received the first response, with the date es.awaitRequest(); + ep.waitUntilInactive(); // ensure the flush worker has finished processing the response (setting lastKnownPastTime) es.receivedParams.clear(); es.result = new EventSender.Result(true, false, null); From 09a1bd65d19f1039ce086ca4322d42b4ba5a7e98 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Tue, 26 May 2026 22:51:42 +0000 Subject: [PATCH 2/9] ci: re-run tests (validation 1) Co-Authored-By: rlamb@launchdarkly.com <4955475+kinyoklion@users.noreply.github.com> From bfc47e5b19db0b9f456038ea5b37a492a58d5325 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Tue, 26 May 2026 22:53:47 +0000 Subject: [PATCH 3/9] ci: re-run tests (validation 2) Co-Authored-By: rlamb@launchdarkly.com <4955475+kinyoklion@users.noreply.github.com> From 094a167eb56be54072807b5ac8122cbfe8800114 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Tue, 26 May 2026 22:56:03 +0000 Subject: [PATCH 4/9] ci: re-run tests (validation 3) Co-Authored-By: rlamb@launchdarkly.com <4955475+kinyoklion@users.noreply.github.com> From 8fcc7727ffbc287e0a7a466133bb9b7a3e5566af Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Tue, 26 May 2026 22:58:25 +0000 Subject: [PATCH 5/9] ci: re-run tests (validation 4) Co-Authored-By: rlamb@launchdarkly.com <4955475+kinyoklion@users.noreply.github.com> From 37c03f437aa5ba829c9b4e0899c42bc9c2173e26 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Tue, 26 May 2026 23:00:41 +0000 Subject: [PATCH 6/9] ci: re-run tests (validation 5) Co-Authored-By: rlamb@launchdarkly.com <4955475+kinyoklion@users.noreply.github.com> From 832baf20b9ca2408632628fd05a7f8e5458b1de4 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Tue, 26 May 2026 23:02:58 +0000 Subject: [PATCH 7/9] ci: re-run tests (validation 6) Co-Authored-By: rlamb@launchdarkly.com <4955475+kinyoklion@users.noreply.github.com> From 907e7278b0b0c38e0ce1a0d69afa95b6d37df072 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Tue, 26 May 2026 23:03:01 +0000 Subject: [PATCH 8/9] ci: re-run tests (validation 7) Co-Authored-By: rlamb@launchdarkly.com <4955475+kinyoklion@users.noreply.github.com> From 3e2086b592ebf8ab4dc0c91e84ce3ed92953d745 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Tue, 26 May 2026 23:03:05 +0000 Subject: [PATCH 9/9] ci: re-run tests (validation 8) Co-Authored-By: rlamb@launchdarkly.com <4955475+kinyoklion@users.noreply.github.com>