30 secon timeout on keypair tests
This commit is contained in:
parent
89779db1f2
commit
1a2b8684e2
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue