From bbbb8571f1a3cdcb9af977867c7a16de3a1f5a76 Mon Sep 17 00:00:00 2001 From: Stefan Birkner Date: Thu, 14 Aug 2014 23:16:09 +0200 Subject: [PATCH] Use a smaller DURATION_THAT_EXCEEDS_TIMEOUT value. Integer.MAX_VALUE might cause problems in some implementations. --- .../tests/internal/runners/statements/FailOnTimeoutTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/junit/tests/internal/runners/statements/FailOnTimeoutTest.java b/src/test/java/org/junit/tests/internal/runners/statements/FailOnTimeoutTest.java index 7bf520b72357..5320a3b1662a 100644 --- a/src/test/java/org/junit/tests/internal/runners/statements/FailOnTimeoutTest.java +++ b/src/test/java/org/junit/tests/internal/runners/statements/FailOnTimeoutTest.java @@ -25,7 +25,7 @@ */ public class FailOnTimeoutTest { private static final int TIMEOUT = 100; - private static final int DURATION_THAT_EXCEEDS_TIMEOUT = Integer.MAX_VALUE; + private static final int DURATION_THAT_EXCEEDS_TIMEOUT = 60 * 60 * 1000; //1 hour @Rule public final ExpectedException thrown = ExpectedException.none(); @@ -194,4 +194,4 @@ private void notTheRealCauseOfTheTimeout() { } } } -} \ No newline at end of file +}