Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Commit 34ecff9

Browse files
authored
Merge pull request #233 from launchdarkly/eb/ch76308/diagnostic-event-test-race
fix race condition in LDClientEndToEndTest
2 parents d1456e9 + bc09057 commit 34ecff9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/java/com/launchdarkly/client/LDClientEndToEndTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,10 @@ public void clientSendsDiagnosticEvent() throws Exception {
174174

175175
try (LDClient client = new LDClient(sdkKey, config)) {
176176
assertTrue(client.initialized());
177-
}
178-
179-
RecordedRequest req = server.takeRequest();
180-
assertEquals("/diagnostic", req.getPath());
177+
178+
RecordedRequest req = server.takeRequest();
179+
assertEquals("/diagnostic", req.getPath());
180+
}
181181
}
182182
}
183183

0 commit comments

Comments
 (0)