WalletTest: Better unit test failure message to check if the test is flaky.

This commit is contained in:
Mike Hearn
2014-09-08 13:01:07 +02:00
parent a3073a0017
commit c8803bdefe

View File

@@ -2476,7 +2476,8 @@ public class WalletTest extends TestWithWallet {
assertTrue("Only one of the signatures should be missing/dummy", firstSigIsMissing ^ secondSigIsMissing);
int localSigIndex = firstSigIsMissing ? 2 : 1;
assertTrue("Local sig should be present", input.getScriptSig().getChunks().get(localSigIndex).data.length > 70);
int length = input.getScriptSig().getChunks().get(localSigIndex).data.length;
assertTrue("Local sig should be present: " + length, length > 70);
}