Skip to content

Commit

Permalink
add time delay to make sure second step fails (on a really fast machi…
Browse files Browse the repository at this point in the history
…ne it seems it doesn't...)
  • Loading branch information
dghgit committed Aug 8, 2022
1 parent 9a271ea commit a5aeeb2
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,15 @@ public void testRevokedEndEntityWithSoftFailure()
PKIXCertPathValidatorResult result =
(PKIXCertPathValidatorResult)cpv.validate(cp, param);

try
{
Thread.sleep(1000); // make sure some time ellapses between first and second failure.
}
catch (Exception e)
{
Thread.currentThread().interrupt();
}

// should fail on the second attempt.
try
{
Expand Down

0 comments on commit a5aeeb2

Please sign in to comment.