Skip to content

Commit

Permalink
chore: Fix failing test in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
izaaz committed Feb 27, 2024
1 parent 82bc317 commit f50729a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/test/java/com/amplitude/HttpTransportTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,9 @@ public void onLogEventServerResponse(Event event, int status, String message) {
}
httpTransport.shutdown();

assertTrue(latch.await(5L, TimeUnit.SECONDS));
boolean success = latch.await(5L, TimeUnit.SECONDS);
assertEquals(0, latch.getCount());
assertTrue(success);
for (Event event : events) {
assertEquals(200, resultMap.get(event));
}
Expand Down

0 comments on commit f50729a

Please sign in to comment.