Skip to content

Commit

Permalink
[misc] code style correction
Browse files Browse the repository at this point in the history
  • Loading branch information
rusher committed Sep 2, 2022
1 parent 042158d commit 55e3c2a
Showing 1 changed file with 4 additions and 7 deletions.
Expand Up @@ -4,6 +4,8 @@

package org.mariadb.jdbc.unit.util.constant;

import static org.junit.jupiter.api.Assertions.assertTrue;

import java.util.*;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
Expand All @@ -26,8 +28,6 @@
import org.mariadb.jdbc.util.log.Loggers;
import org.mariadb.jdbc.util.options.OptionAliases;

import static org.junit.jupiter.api.Assertions.assertTrue;

public class HaModeTest {
@Test
public void instantiateStaticOnlyClass() {
Expand Down Expand Up @@ -77,9 +77,7 @@ public void replicationEndOfBlacklistTest() {
if (host2.equals(res.get())) replica1++;
if (host3.equals(res.get())) replica2++;
}
assertTrue(
replica1 > 350 && replica2 > 350, "bad distribution :" + replica1 + "/" + replica2);

assertTrue(replica1 > 350 && replica2 > 350, "bad distribution :" + replica1 + "/" + replica2);

replica1 = 0;
replica2 = 0;
Expand All @@ -90,8 +88,7 @@ public void replicationEndOfBlacklistTest() {
if (host2.equals(res.get())) replica1++;
if (host3.equals(res.get())) replica2++;
}
assertTrue(
replica1 > 350 && replica2 > 350, "bad distribution :" + replica1 + "/" + replica2);
assertTrue(replica1 > 350 && replica2 > 350, "bad distribution :" + replica1 + "/" + replica2);

for (int i = 0; i < 1000; i++) {
denyList.putIfAbsent(host2, System.currentTimeMillis() + 1000);
Expand Down

0 comments on commit 55e3c2a

Please sign in to comment.