Skip to content

Commit

Permalink
issue-628 Changed test case timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
hcha authored and heyhiren committed Aug 2, 2023
1 parent 0051042 commit d696b0c
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@

public class BasicClusteredWriteBehindTest extends WriteBehindTestBase {

// @Rule
// public Timeout timeout = new Timeout(1, TimeUnit.MINUTES);
@Rule
public Timeout timeout = new Timeout(1, TimeUnit.MINUTES);

private boolean doThreadDump = true;

Expand Down Expand Up @@ -83,7 +83,7 @@ public void tearDown() throws Exception {
}
}

@Test(timeout = 60000)
@Test
public void testBasicClusteredWriteBehind() throws Exception {
for (int i = 0; i < 10; i++) {
cache.put(KEY, String.valueOf(i));
Expand All @@ -96,7 +96,7 @@ public void testBasicClusteredWriteBehind() throws Exception {
doThreadDump = false;
}

@Test(timeout = 60000)
@Test
public void testClusteredWriteBehindCAS() throws Exception {
cache.putIfAbsent(KEY, "First value");
assertValue(cache,"First value");
Expand All @@ -123,7 +123,7 @@ public void testClusteredWriteBehindCAS() throws Exception {
doThreadDump = false;
}

@Test(timeout = 60000)
@Test
public void testClusteredWriteBehindLoading() throws Exception {
cache.put(KEY, "Some value");
checkValueFromLoaderWriter("Some value");
Expand Down

0 comments on commit d696b0c

Please sign in to comment.