Skip to content

Commit

Permalink
SOLR-12120: Harden AuditLoggerIntegrationTest
Browse files Browse the repository at this point in the history
  • Loading branch information
janhoy committed Apr 23, 2019
1 parent bc8985d commit 2261b4e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,10 @@ public void testQueuedTimeMetric() throws Exception {

@Test
public void testAsyncQueueDrain() throws Exception {
setupCluster(true, 100, false, null);
setupCluster(true, 150, false, null);
runAdminCommands();
assertTrue("Expecting <2 callbacks in buffer, was " + testHarness.get().receiver.getBuffer().size(),
testHarness.get().receiver.getBuffer().size() < 2); // Events still on queue
assertTrue("Expecting <3 callbacks in buffer, was " + testHarness.get().receiver.getBuffer().size(),
testHarness.get().receiver.getBuffer().size() < 3); // Events still on queue
// We shutdown cluster while events are still in queue
testHarness.get().shutdownCluster();
assertThreeAdminEvents();
Expand Down Expand Up @@ -218,7 +218,7 @@ private void assertAuditEvent(AuditEvent e, EventType type, String path, Request
}

private void waitForAuditEventCallbacks(int number) throws InterruptedException {
waitForAuditEventCallbacks(number, 5);
waitForAuditEventCallbacks(number, 30);
}

private void waitForAuditEventCallbacks(int number, int timeoutSeconds) throws InterruptedException {
Expand Down

0 comments on commit 2261b4e

Please sign in to comment.