Skip to content

Commit 78f5fa8

Browse files
author
Tibor Digana
committed
no #deleteOnExit, no inline comment, added space in comment
1 parent 7783b6a commit 78f5fa8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/org/junit/internal/runners/statements/FailOnTimeout.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ public void evaluate() throws Throwable {
3131

3232
private StatementThread evaluateStatement() throws InterruptedException {
3333
StatementThread thread = new StatementThread(fOriginalStatement);
34-
thread.setDaemon(true);//Let the process/application complete after timeout expired.
34+
// Let the process/application complete after timeout expired.
35+
thread.setDaemon(true);
3536
thread.start();
3637
fTimeUnit.timedJoin(thread, fTimeout);
3738
if (!thread.fFinished) {

src/test/java/org/junit/tests/experimental/rules/TimeoutRuleTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ public void run5() throws IOException {
6767
Random rnd = new Random();
6868
byte[] data = new byte[1024];
6969
File tmp = tmpFile.newFile();
70-
tmp.deleteOnExit();
7170
while (true) {
7271
FileChannel channel = new RandomAccessFile(tmp, "rw").getChannel();
7372
rnd.nextBytes(data);

0 commit comments

Comments
 (0)