From 25e2d5ca691153d906c9451ffd95da09c22609f0 Mon Sep 17 00:00:00 2001 From: Dominik Stadler Date: Wed, 6 Dec 2023 19:49:56 +0000 Subject: [PATCH] Add more output for a failure that we saw once in CI git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1914405 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/poifs/crypt/dsig/TestSignatureInfo.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/poi-ooxml/src/test/java/org/apache/poi/poifs/crypt/dsig/TestSignatureInfo.java b/poi-ooxml/src/test/java/org/apache/poi/poifs/crypt/dsig/TestSignatureInfo.java index 932195193e..3a7e4eb5ed 100644 --- a/poi-ooxml/src/test/java/org/apache/poi/poifs/crypt/dsig/TestSignatureInfo.java +++ b/poi-ooxml/src/test/java/org/apache/poi/poifs/crypt/dsig/TestSignatureInfo.java @@ -252,7 +252,11 @@ class TestSignatureInfo { si.setOpcPackage(pkg); si.setSignatureConfig(sic); boolean isValid = si.verifySignature(); - assertTrue(isValid); + + assertTrue(isValid, + // add some details to find out why "verifySignature()" returns false sometimes + "Verifying signature failed, hasNext: " + si.getSignatureParts().iterator().hasNext() + ": " + + (si.getSignatureParts().iterator().hasNext() ? si.getSignatureParts().iterator() : "")); } } -- 2.39.5