30 secon timeout on keypair tests

This commit is contained in:
Kyle Spearrin 2018-07-12 10:05:32 -04:00
parent 89779db1f2
commit 1a2b8684e2
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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() {