Skip to content

Commit

Permalink
[FLINK-11168][tests] Relax time-constraints for LargePlanTest
Browse files Browse the repository at this point in the history
The test completes in 500ms on my machine. On Travis the resources are much
more limited and it fails occasionally.

The following should ensure the test does not fail anymore:

- Increase test timeout to 30 seconds
- Reduce complexity of tests by decreasing branching factor
  • Loading branch information
mxm authored and zentol committed Dec 18, 2018
1 parent 84b6616 commit 68323de
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
*/
public class LargePlanTest {

@Test(expected = OptimizerPlanEnvironment.ProgramAbortException.class, timeout = 15_000)
@Test(expected = OptimizerPlanEnvironment.ProgramAbortException.class, timeout = 30_000)
public void testPlanningOfLargePlan() throws Exception {
runProgram(new PreviewPlanEnvironment(), 10, 50);
runProgram(new PreviewPlanEnvironment(), 10, 20);
}

private static void runProgram(ExecutionEnvironment env, int depth, int width) throws Exception {
Expand Down

0 comments on commit 68323de

Please sign in to comment.