Skip to content

Commit 6597d8a

Browse files
author
Gary Gregory
committed
No need to specify value equal to the default.
Trying to fix random failures on GitHub builds.
1 parent d8cfcf6 commit 6597d8a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/test/java/org/apache/commons/io/FileUtilsWaitForTestCase.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,16 @@ public void testWaitFor() {
3939

4040
@Test
4141
public void testWaitForInterrupted() throws InterruptedException {
42-
final AtomicBoolean wasInterrupted = new AtomicBoolean(false);
42+
final AtomicBoolean wasInterrupted = new AtomicBoolean();
4343
final CountDownLatch started = new CountDownLatch(1);
4444
final Thread thread1 = new Thread(() -> {
4545
started.countDown();
4646
assertTrue(FileUtils.waitFor(FileUtils.current(), 4));
4747
wasInterrupted.set(Thread.currentThread().isInterrupted());
4848
});
4949
thread1.start();
50-
started.await();
5150
thread1.interrupt();
51+
started.await();
5252
thread1.join();
5353
assertTrue(wasInterrupted.get());
5454
}

0 commit comments

Comments
 (0)