From d6804d2c53f04e8cfb2f56432904306e258478ab Mon Sep 17 00:00:00 2001 From: Hellblazer Date: Sun, 26 Nov 2023 17:58:37 -0800 Subject: [PATCH] reduce test iteratios --- .../apollo/membership/messaging/{ => rbc}/RbcTest.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) rename memberships/src/test/java/com/salesforce/apollo/membership/messaging/{ => rbc}/RbcTest.java (96%) diff --git a/memberships/src/test/java/com/salesforce/apollo/membership/messaging/RbcTest.java b/memberships/src/test/java/com/salesforce/apollo/membership/messaging/rbc/RbcTest.java similarity index 96% rename from memberships/src/test/java/com/salesforce/apollo/membership/messaging/RbcTest.java rename to memberships/src/test/java/com/salesforce/apollo/membership/messaging/rbc/RbcTest.java index 6f0b37ac8..a88155c45 100644 --- a/memberships/src/test/java/com/salesforce/apollo/membership/messaging/RbcTest.java +++ b/memberships/src/test/java/com/salesforce/apollo/membership/messaging/rbc/RbcTest.java @@ -4,7 +4,7 @@ * SPDX-License-Identifier: BSD-3-Clause * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ -package com.salesforce.apollo.membership.messaging; +package com.salesforce.apollo.membership.messaging.rbc; import com.codahale.metrics.ConsoleReporter; import com.codahale.metrics.MetricRegistry; @@ -20,9 +20,6 @@ import com.salesforce.apollo.membership.Context; import com.salesforce.apollo.membership.Member; import com.salesforce.apollo.membership.SigningMember; -import com.salesforce.apollo.membership.messaging.rbc.RbcMetrics; -import com.salesforce.apollo.membership.messaging.rbc.RbcMetricsImpl; -import com.salesforce.apollo.membership.messaging.rbc.ReliableBroadcaster; import com.salesforce.apollo.membership.messaging.rbc.ReliableBroadcaster.MessageHandler; import com.salesforce.apollo.membership.messaging.rbc.ReliableBroadcaster.Msg; import com.salesforce.apollo.membership.messaging.rbc.ReliableBroadcaster.Parameters; @@ -115,7 +112,7 @@ public void broadcast() throws Exception { view.registerHandler(receiver); receivers.put(view.getMember(), receiver); } - int rounds = LARGE_TESTS ? 100 : 50; + int rounds = LARGE_TESTS ? 100 : 5; for (int r = 0; r < rounds; r++) { CountDownLatch latch = new CountDownLatch(messengers.size()); round.set(latch);