Skip to content

Commit

Permalink
Add retries to fragile CA cert parsing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pimterry committed Sep 4, 2023
1 parent a2d97f5 commit bbca1ea
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/unit/model/crypto.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ import * as badSslPfxData from 'arraybuffer-loader!../../fixtures/badssl.p12';
import * as rsaCaCert from 'arraybuffer-loader!../../fixtures/ca-cert-rsa.pem';
import * as ecdsaCaCert from 'arraybuffer-loader!../../fixtures/ca-cert-ecdsa.pem';

describe("validatePfx", () => {
describe("validatePfx", function () {

// Occasionally the success-case tests can time out in CI. Very unclear why, I suspect
// some kind of data/lib loading delay somewhere? No apparent errors...

this.retries(3);

it("should validate successfully with the right passphrase", () => {
expect(
Expand Down

0 comments on commit bbca1ea

Please sign in to comment.