Skip to content

Commit cf1d061

Browse files
committed
repetitions.test: increase timeout for ARM builds in CI
1 parent f7c9fe7 commit cf1d061

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/repetitions.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,23 @@ test('salt_length', () => {
88
return Promise.all(Array.from({length: EXPECTED},
99
() => bcrypt.genSalt(10)
1010
.then(salt => expect(salt).toHaveLength(29))));
11-
})
11+
}, 10e3)
1212

1313
test('test_hash_length', () => {
1414
expect.assertions(EXPECTED);
1515
const SALT = '$2a$04$TnjywYklQbbZjdjBgBoA4e';
1616
return Promise.all(Array.from({length: EXPECTED},
1717
() => bcrypt.hash('test', SALT)
1818
.then(hash => expect(hash).toHaveLength(60))));
19-
})
19+
}, 10e3)
2020

2121
test('test_compare', () => {
2222
expect.assertions(EXPECTED);
2323
const HASH = '$2a$04$TnjywYklQbbZjdjBgBoA4e9G7RJt9blgMgsCvUvus4Iv4TENB5nHy';
2424
return Promise.all(Array.from({length: EXPECTED},
2525
() => bcrypt.compare('test', HASH)
2626
.then(match => expect(match).toEqual(true))));
27-
})
27+
}, 10e3)
2828

2929
test('test_hash_and_compare', () => {
3030
expect.assertions(EXPECTED * 3);
@@ -42,5 +42,5 @@ test('test_hash_and_compare', () => {
4242
return Promise.all([goodCompare, badCompare]);
4343
});
4444
}));
45-
}, 10000);
45+
}, 30e3);
4646

0 commit comments

Comments
 (0)