You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2021/09/19 16:31:07 UTC

[commons-io] branch master updated: No need to specify value equal to the default.

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-io.git


The following commit(s) were added to refs/heads/master by this push:
     new 6597d8a  No need to specify value equal to the default.
6597d8a is described below

commit 6597d8a77f38c24565d4120e971dcab28d46cea4
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Sep 19 12:31:03 2021 -0400

    No need to specify value equal to the default.
    
    Trying to fix random failures on GitHub builds.
---
 src/test/java/org/apache/commons/io/FileUtilsWaitForTestCase.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/test/java/org/apache/commons/io/FileUtilsWaitForTestCase.java b/src/test/java/org/apache/commons/io/FileUtilsWaitForTestCase.java
index a0b1f47..78c5134 100644
--- a/src/test/java/org/apache/commons/io/FileUtilsWaitForTestCase.java
+++ b/src/test/java/org/apache/commons/io/FileUtilsWaitForTestCase.java
@@ -39,7 +39,7 @@ public class FileUtilsWaitForTestCase {
 
     @Test
     public void testWaitForInterrupted() throws InterruptedException {
-        final AtomicBoolean wasInterrupted = new AtomicBoolean(false);
+        final AtomicBoolean wasInterrupted = new AtomicBoolean();
         final CountDownLatch started = new CountDownLatch(1);
         final Thread thread1 = new Thread(() -> {
             started.countDown();
@@ -47,8 +47,8 @@ public class FileUtilsWaitForTestCase {
             wasInterrupted.set(Thread.currentThread().isInterrupted());
         });
         thread1.start();
-        started.await();
         thread1.interrupt();
+        started.await();
         thread1.join();
         assertTrue(wasInterrupted.get());
     }