Skip to content

Commit

Permalink
Increase timeout of test involving key generation because GitHub Acti…
Browse files Browse the repository at this point in the history
…ons runner is really slow (#2987)
  • Loading branch information
steveluscher authored Jul 26, 2024
1 parent 2d2709e commit a459675
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions packages/addresses/src/__tests__/public-key-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,15 @@ describe('getAddressFromPublicKey', () => {
}) as RsaHashedKeyGenParams,
),
),
])('throws when called with a $name/$__variant public key', async algorithm => {
expect.assertions(1);
const { publicKey } = await crypto.subtle.generateKey(algorithm, true, ['sign', 'verify']);
await expect(() => getAddressFromPublicKey(publicKey)).rejects.toThrow();
});
])(
'throws when called with a $name/$__variant public key',
async algorithm => {
expect.assertions(1);
const { publicKey } = await crypto.subtle.generateKey(algorithm, true, ['sign', 'verify']);
await expect(() => getAddressFromPublicKey(publicKey)).rejects.toThrow();
},
10_000 /* Increase `timeout` to 10 seconds; GitHub Actions runner is really slow. */,
);
it('throws when called with a private key', async () => {
expect.assertions(1);
const mockPrivateKey = await crypto.subtle.importKey(
Expand Down

0 comments on commit a459675

Please sign in to comment.