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 2023/11/04 13:21:49 UTC

(commons-compress) 01/02: Missing assertion

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-compress.git

commit a79a23d43d5b153affde1e205b3d24e5ff526afd
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sat Nov 4 09:18:45 2023 -0400

    Missing assertion
---
 .../org/apache/commons/compress/archivers/zip/ScatterSampleTest.java   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/test/java/org/apache/commons/compress/archivers/zip/ScatterSampleTest.java b/src/test/java/org/apache/commons/compress/archivers/zip/ScatterSampleTest.java
index 2aca014d..96073f1e 100644
--- a/src/test/java/org/apache/commons/compress/archivers/zip/ScatterSampleTest.java
+++ b/src/test/java/org/apache/commons/compress/archivers/zip/ScatterSampleTest.java
@@ -17,6 +17,7 @@
 package org.apache.commons.compress.archivers.zip;
 
 import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
 
 import java.io.ByteArrayInputStream;
 import java.io.File;
@@ -44,7 +45,7 @@ public class ScatterSampleTest extends AbstractTempDirTest {
                 assertEquals('o', b[4]);
             }
         }
-        result.delete();
+        assertTrue(result.delete());
     }
 
     private void createFile(final File result) throws IOException, ExecutionException, InterruptedException {