Skip to content

Commit

Permalink
Add more output for a failure that we saw once in CI
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1914405 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
centic9 committed Dec 6, 2023
1 parent 15dd62d commit 25e2d5c
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,11 @@ void office2007prettyPrintedRels() throws Exception {
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() : ""));
}
}

Expand Down

0 comments on commit 25e2d5c

Please sign in to comment.