Fix TimeoutInputStreamTest, TimeoutOutputStreamTest assertions
commit908bfb6805eca9cb96a2cff0477256d2e47ad456
authorShawn O. Pearce <spearce@spearce.org>
Wed, 10 Feb 2010 23:00:12 +0000 (10 15:00 -0800)
committerShawn O. Pearce <spearce@spearce.org>
Wed, 10 Feb 2010 23:00:12 +0000 (10 15:00 -0800)
tree555b83cb9770547ad251eae5cfff67e09868e381
parente54d33b6873f0b392640f9200398861210ac9374
Fix TimeoutInputStreamTest, TimeoutOutputStreamTest assertions

If the build server is really busy, we might wait longer than 250 ms
before being interrupted, simply because one of our threads couldn't
be scheduled onto a CPU.  Don't make that cause a test failure.
Instead tolerate longer than expected waits, but not shorter waits.

Change-Id: I64511eec24b49e33928451e4c8b8c124eddaf0c2
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit.test/tst/org/eclipse/jgit/util/io/TimeoutInputStreamTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/util/io/TimeoutOutputStreamTest.java