Skip to content

Commit

Permalink
Use a smaller DURATION_THAT_EXCEEDS_TIMEOUT value.
Browse files Browse the repository at this point in the history
Integer.MAX_VALUE might cause problems in some implementations.
  • Loading branch information
stefanbirkner committed Aug 14, 2014
1 parent fee8a74 commit bbbb857
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -194,4 +194,4 @@ private void notTheRealCauseOfTheTimeout() {
}
}
}
}
}

0 comments on commit bbbb857

Please sign in to comment.