From: David S. <ds...@us...> - 2006-11-21 19:52:33
|
Update of /cvsroot/junit/junit/src/org/junit/internal/runners In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv11520/src/org/junit/internal/runners Modified Files: TestMethodRunner.java Log Message: Fixed two bugs: RunWtih(Suite) should not require a default constructor Test(timeout) was taking twice as long as specified Index: TestMethodRunner.java =================================================================== RCS file: /cvsroot/junit/junit/src/org/junit/internal/runners/TestMethodRunner.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- TestMethodRunner.java 21 Nov 2006 18:53:34 -0000 1.1 +++ TestMethodRunner.java 21 Nov 2006 19:52:30 -0000 1.2 @@ -63,7 +63,7 @@ TimeUnit.MILLISECONDS); if (!terminated) service.shutdownNow(); - result.get(timeout, TimeUnit.MILLISECONDS); // throws the exception if one occurred during the invocation + result.get(0, TimeUnit.MILLISECONDS); // throws the exception if one occurred during the invocation } catch (TimeoutException e) { addFailure(new Exception(String.format("test timed out after %d milliseconds", timeout))); } catch (Exception e) { |