Skip to content

Commit

Permalink
RATIS-2078. Revert some correct unit
Browse files Browse the repository at this point in the history
  • Loading branch information
symious committed May 8, 2024
1 parent dacfa9b commit 3b85320
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ratis-common/src/test/java/org/apache/ratis/BaseTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
import java.util.concurrent.atomic.AtomicReference;
import java.util.function.Supplier;

@Timeout(value = 100, unit = TimeUnit.MILLISECONDS)
@Timeout(value = 100)
public abstract class BaseTest {
public final Logger LOG = LoggerFactory.getLogger(getClass());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ public String toString() {
}

@Test
@Timeout(value = 300, unit = TimeUnit.MILLISECONDS)
@Timeout(value = 300)
public void testWithLoad() throws Exception {
runWithNewCluster(NUM_SERVERS, cluster -> testWithLoad(10, 300, false, cluster, LOG));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

import java.util.concurrent.TimeUnit;

@Timeout(value = 100, unit = TimeUnit.MILLISECONDS)
@Timeout(value = 100)
public class TestRaftOutputStreamWithGrpc
extends OutputStreamBaseTest<MiniRaftClusterWithGrpc>
implements MiniRaftClusterWithGrpc.FactoryGet {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import java.util.UUID;
import java.util.concurrent.TimeUnit;

@Timeout(value = 1, unit = TimeUnit.MILLISECONDS)
@Timeout(value = 1)
public class TestRaftGroup extends BaseTest {

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import java.util.UUID;
import java.util.concurrent.TimeUnit;

@Timeout(value = 1, unit = TimeUnit.MILLISECONDS)
@Timeout(value = 1)
public class TestRaftId extends BaseTest {

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

import java.util.concurrent.TimeUnit;

@Timeout(value = 1, unit = TimeUnit.MILLISECONDS)
@Timeout(value = 1)
public class TestRoutingTable extends BaseTest {

private final RaftPeerId[] peers = new RaftPeerId[10];
Expand Down

0 comments on commit 3b85320

Please sign in to comment.