You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ja...@apache.org on 2019/04/23 13:18:33 UTC

[lucene-solr] branch master updated: SOLR-12120: Harden AuditLoggerIntegrationTest

This is an automated email from the ASF dual-hosted git repository.

janhoy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git


The following commit(s) were added to refs/heads/master by this push:
     new 2261b4e  SOLR-12120: Harden AuditLoggerIntegrationTest
2261b4e is described below

commit 2261b4e8e1cb24b644c71ddf8621535f9c4ac5b4
Author: Jan Høydahl <ja...@apache.org>
AuthorDate: Tue Apr 23 15:18:16 2019 +0200

    SOLR-12120: Harden AuditLoggerIntegrationTest
---
 .../test/org/apache/solr/security/AuditLoggerIntegrationTest.java | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/solr/core/src/test/org/apache/solr/security/AuditLoggerIntegrationTest.java b/solr/core/src/test/org/apache/solr/security/AuditLoggerIntegrationTest.java
index 6ab0a71..fc0da65 100644
--- a/solr/core/src/test/org/apache/solr/security/AuditLoggerIntegrationTest.java
+++ b/solr/core/src/test/org/apache/solr/security/AuditLoggerIntegrationTest.java
@@ -123,10 +123,10 @@ public class AuditLoggerIntegrationTest extends SolrCloudAuthTestCase {
 
   @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();
@@ -218,7 +218,7 @@ public class AuditLoggerIntegrationTest extends SolrCloudAuthTestCase {
   }
 
   private void waitForAuditEventCallbacks(int number) throws InterruptedException {
-    waitForAuditEventCallbacks(number, 5);
+    waitForAuditEventCallbacks(number, 30);
   }
 
   private void waitForAuditEventCallbacks(int number, int timeoutSeconds) throws InterruptedException {