Skip to content

Commit 0fe1bc2

Browse files
committed
RATIS-2294. Add Timeout.
1 parent 4814dca commit 0fe1bc2

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ jobs:
9797
script: unit
9898
script-args: -P${{ matrix.profile }}-tests
9999
split: ${{ matrix.profile }}
100-
timeout-minutes: 120
100+
timeout-minutes: 60
101101
secrets: inherit
102102

103103
coverage:

ratis-test/src/test/java/org/apache/ratis/grpc/TestRaftAsyncWithGrpc.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
package org.apache.ratis.grpc;
1919

2020
import org.apache.ratis.RaftAsyncTests;
21+
import org.junit.jupiter.api.Timeout;
2122

23+
@Timeout(100)
2224
public class TestRaftAsyncWithGrpc extends RaftAsyncTests<MiniRaftClusterWithGrpc>
2325
implements MiniRaftClusterWithGrpc.FactoryGet {
2426
}

ratis-test/src/test/java/org/apache/ratis/netty/TestRaftAsyncWithNetty.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
package org.apache.ratis.netty;
1919

2020
import org.apache.ratis.RaftAsyncTests;
21+
import org.junit.jupiter.api.Timeout;
2122

23+
@Timeout(100)
2224
public class TestRaftAsyncWithNetty
2325
extends RaftAsyncTests<MiniRaftClusterWithNetty>
2426
implements MiniRaftClusterWithNetty.FactoryGet {

0 commit comments

Comments
 (0)