mirror of
https://github.com/bitwarden/browser
synced 2025-12-21 18:53:29 +00:00
30 secon timeout on keypair tests
This commit is contained in:
@@ -318,7 +318,7 @@ function testRsaGenerateKeyPair(length: 1024 | 2048 | 4096) {
|
|||||||
expect(keyPair[0] == null || keyPair[1] == null).toBe(false);
|
expect(keyPair[0] == null || keyPair[1] == null).toBe(false);
|
||||||
const publicKey = await cryptoFunctionService.rsaExtractPublicKey(keyPair[1]);
|
const publicKey = await cryptoFunctionService.rsaExtractPublicKey(keyPair[1]);
|
||||||
expect(Utils.fromBufferToB64(keyPair[0])).toBe(Utils.fromBufferToB64(publicKey));
|
expect(Utils.fromBufferToB64(keyPair[0])).toBe(Utils.fromBufferToB64(publicKey));
|
||||||
}, 10000);
|
}, 30000);
|
||||||
}
|
}
|
||||||
|
|
||||||
function makeStaticByteArray(length: number) {
|
function makeStaticByteArray(length: number) {
|
||||||
|
|||||||
@@ -372,7 +372,7 @@ function testRsaGenerateKeyPair(length: 1024 | 2048 | 4096) {
|
|||||||
expect(keyPair[0] == null || keyPair[1] == null).toBe(false);
|
expect(keyPair[0] == null || keyPair[1] == null).toBe(false);
|
||||||
const publicKey = await cryptoFunctionService.rsaExtractPublicKey(keyPair[1]);
|
const publicKey = await cryptoFunctionService.rsaExtractPublicKey(keyPair[1]);
|
||||||
expect(Utils.fromBufferToB64(keyPair[0])).toBe(Utils.fromBufferToB64(publicKey));
|
expect(Utils.fromBufferToB64(keyPair[0])).toBe(Utils.fromBufferToB64(publicKey));
|
||||||
});
|
}, 30000);
|
||||||
}
|
}
|
||||||
|
|
||||||
function getWebCryptoFunctionService() {
|
function getWebCryptoFunctionService() {
|
||||||
|
|||||||
Reference in New Issue
Block a user