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/06/10 13:41:17 UTC

[commons-fileupload] branch master updated: Adjust test

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


The following commit(s) were added to refs/heads/master by this push:
     new 02340af  Adjust test
02340af is described below

commit 02340afd9b6471115186441f511e63efe80eb7be
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sat Jun 10 09:41:13 2023 -0400

    Adjust test
---
 .../test/java/org/apache/commons/fileupload2/AbstractStreamingTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/commons-fileupload2-core/src/test/java/org/apache/commons/fileupload2/AbstractStreamingTest.java b/commons-fileupload2-core/src/test/java/org/apache/commons/fileupload2/AbstractStreamingTest.java
index 1b39cb4..5259897 100644
--- a/commons-fileupload2-core/src/test/java/org/apache/commons/fileupload2/AbstractStreamingTest.java
+++ b/commons-fileupload2-core/src/test/java/org/apache/commons/fileupload2/AbstractStreamingTest.java
@@ -181,7 +181,7 @@ public abstract class AbstractStreamingTest<F extends FileUpload<R>, R, C extend
             parseUpload(invalidRequest);
             fail("Expected EndOfStreamException");
         } catch (final FileUploadException e) {
-            assertTrue(e.getCause() instanceof MultipartStream.MalformedStreamException);
+            assertTrue(e.getSuppressed()[0] instanceof MultipartStream.MalformedStreamException, e.toString());
         }
     }