Skip to content
Snippets Groups Projects
Commit 1dcd2cdf authored by Robin Rosenberg's avatar Robin Rosenberg Committed by Code Review
Browse files

Merge "Fix TimeoutInputStreamTest, TimeoutOutputStreamTest assertions"

parents ecb22e4b 908bfb68
No related branches found
No related tags found
No related merge requests found
/*
* Copyright (C) 2009, Google Inc.
* Copyright (C) 2009-2010, Google Inc.
* and other copyright owners as documented in the project's IP log.
*
* This program and the accompanying materials are made available
......@@ -170,7 +170,7 @@ private void assertTimeout() {
// 50 ms of the expected timeout.
//
final long wait = now() - start;
assertTrue(Math.abs(wait - timeout) < 50);
assertTrue("waited only " + wait + " ms", timeout - wait < 50);
}
private static List<Thread> active() {
......
/*
* Copyright (C) 2009, Google Inc.
* Copyright (C) 2009-2010, Google Inc.
* and other copyright owners as documented in the project's IP log.
*
* This program and the accompanying materials are made available
......@@ -251,7 +251,7 @@ private void assertTimeout() {
// 50 ms of the expected timeout.
//
final long wait = now() - start;
assertTrue(Math.abs(wait - timeout) < 50);
assertTrue("waited only " + wait + " ms", timeout - wait < 50);
}
private static List<Thread> active() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment