Skip to content

Commit

Permalink
added margin on flaky test
Browse files Browse the repository at this point in the history
Signed-off-by: Greg Wilkins <gregw@webtide.com>
  • Loading branch information
gregw committed Jan 30, 2018
1 parent c07bab5 commit 8c6883a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -723,8 +723,8 @@ public void testMaxIdleDispatch() throws Exception
e.printStackTrace();
}
int duration = (int)(System.currentTimeMillis() - start);
Assert.assertThat(duration,Matchers.greaterThanOrEqualTo(MAX_IDLE_TIME));
Assert.assertThat(duration,Matchers.lessThan(maximumTestRuntime));
Assert.assertThat(duration+100,Matchers.greaterThanOrEqualTo(MAX_IDLE_TIME));
Assert.assertThat(duration-100,Matchers.lessThan(maximumTestRuntime));
}


Expand Down

0 comments on commit 8c6883a

Please sign in to comment.