Skip to content

Commit bbca1ea

Browse files
committed
Add retries to fragile CA cert parsing tests
1 parent a2d97f5 commit bbca1ea

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/unit/model/crypto.spec.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@ import * as badSslPfxData from 'arraybuffer-loader!../../fixtures/badssl.p12';
1414
import * as rsaCaCert from 'arraybuffer-loader!../../fixtures/ca-cert-rsa.pem';
1515
import * as ecdsaCaCert from 'arraybuffer-loader!../../fixtures/ca-cert-ecdsa.pem';
1616

17-
describe("validatePfx", () => {
17+
describe("validatePfx", function () {
18+
19+
// Occasionally the success-case tests can time out in CI. Very unclear why, I suspect
20+
// some kind of data/lib loading delay somewhere? No apparent errors...
21+
22+
this.retries(3);
1823

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

0 commit comments

Comments
 (0)