From 8c6883a1094ba32a40dec7aaed040876d1403f84 Mon Sep 17 00:00:00 2001 From: Greg Wilkins Date: Tue, 30 Jan 2018 19:31:48 +0100 Subject: [PATCH] added margin on flaky test Signed-off-by: Greg Wilkins --- .../java/org/eclipse/jetty/server/ConnectorTimeoutTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jetty-server/src/test/java/org/eclipse/jetty/server/ConnectorTimeoutTest.java b/jetty-server/src/test/java/org/eclipse/jetty/server/ConnectorTimeoutTest.java index 5aaf250eab4..111b22daad3 100644 --- a/jetty-server/src/test/java/org/eclipse/jetty/server/ConnectorTimeoutTest.java +++ b/jetty-server/src/test/java/org/eclipse/jetty/server/ConnectorTimeoutTest.java @@ -723,8 +723,8 @@ public abstract class ConnectorTimeoutTest extends HttpServerTestFixture 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)); }