Skip to content

Commit

Permalink
[hotfix][tests] SynchronousCheckpointITCase: set test run timeout limit
Browse files Browse the repository at this point in the history
  • Loading branch information
1u0 authored and pnowojski committed Jun 14, 2019
1 parent bdcef35 commit 666d887
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@
import org.apache.flink.util.SerializedValue;

import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.Timeout;

import java.util.Collections;
import java.util.concurrent.Executor;
Expand Down Expand Up @@ -108,6 +110,9 @@ public void initializeLatchesAndError() {
error.set(null);
}

@Rule
public final Timeout timeoutPerTest = Timeout.seconds(10);

@Test
public void taskCachedThreadPoolAllowsForSynchronousCheckpoints() throws Exception {
final Task task = createTask(SynchronousCheckpointTestingTask.class);
Expand Down

0 comments on commit 666d887

Please sign in to comment.