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


The following commit(s) were added to refs/heads/master by this push:
     new 2913771b Use JUnit fail() instead of throwing an error in tests
2913771b is described below

commit 2913771b6a3fd8a0111b2ff315569abaddeccef9
Author: Gary Gregory <[email protected]>
AuthorDate: Thu Aug 31 09:17:15 2023 -0400

    Use JUnit fail() instead of throwing an error in tests
---
 src/test/java/org/apache/commons/compress/AbstractTestCase.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test/java/org/apache/commons/compress/AbstractTestCase.java 
b/src/test/java/org/apache/commons/compress/AbstractTestCase.java
index 07a65ffe..80624ea0 100644
--- a/src/test/java/org/apache/commons/compress/AbstractTestCase.java
+++ b/src/test/java/org/apache/commons/compress/AbstractTestCase.java
@@ -91,7 +91,7 @@ public abstract class AbstractTestCase {
         }
         tryHardToDelete(f); // safer to delete and check
         if (f.exists()) {
-            throw new Error("Failed to delete " + f.getPath());
+            fail("Failed to delete " + f.getPath());
         }
     }
 

Reply via email to