Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

no #deleteOnExit, no inline comment, added space in comment

  • Loading branch information...
commit 78f5fa85b492353ad062f54d1f0ceec745537761 1 parent 7783b6a
@Tibor17 authored
View
3  src/main/java/org/junit/internal/runners/statements/FailOnTimeout.java
@@ -31,7 +31,8 @@ public void evaluate() throws Throwable {
private StatementThread evaluateStatement() throws InterruptedException {
StatementThread thread = new StatementThread(fOriginalStatement);
- thread.setDaemon(true);//Let the process/application complete after timeout expired.
+ // Let the process/application complete after timeout expired.
+ thread.setDaemon(true);
thread.start();
fTimeUnit.timedJoin(thread, fTimeout);
if (!thread.fFinished) {
View
1  src/test/java/org/junit/tests/experimental/rules/TimeoutRuleTest.java
@@ -67,7 +67,6 @@ public void run5() throws IOException {
Random rnd = new Random();
byte[] data = new byte[1024];
File tmp = tmpFile.newFile();
- tmp.deleteOnExit();
while (true) {
FileChannel channel = new RandomAccessFile(tmp, "rw").getChannel();
rnd.nextBytes(data);
Please sign in to comment.
Something went wrong with that request. Please try again.