Skip to content

Commit 70169ec

Browse files
Fixing travis build
1 parent 563a46e commit 70169ec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

client/src/test/java/io/split/client/EventsClientImplTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public void testEventsFlushedWhenSizeLimitReached() throws URISyntaxException, I
8181
}
8282

8383
@Test
84-
public void testEventDropped() throws URISyntaxException, NoSuchFieldException, IllegalAccessException {
84+
public void testEventDropped() throws URISyntaxException, NoSuchFieldException, IllegalAccessException, InterruptedException {
8585
CloseableHttpClient client = Mockito.mock(CloseableHttpClient.class);
8686
EventClientImpl eventClient = new EventClientImpl(new LinkedBlockingQueue<>(2),
8787
client,
@@ -90,6 +90,7 @@ public void testEventDropped() throws URISyntaxException, NoSuchFieldException,
9090
100000, // Long period so it doesn't flush by timeout expiration.
9191
0, TELEMETRY_STORAGE);
9292
eventClient.close();
93+
Thread.sleep(1000);
9394
for (int i = 0; i < 3; ++i) {
9495
Event event = new Event();
9596
eventClient.track(event, 1);

0 commit comments

Comments
 (0)