Fix authority expiry timeout
All checks were successful
Lint & Build / lint_and_build (20.x) (pull_request) Successful in 1m37s
Tests / sdk_tests (pull_request) Successful in 20m23s

This commit is contained in:
IshaVenikar 2024-08-05 09:57:11 +05:30 committed by Prathamesh Musale
parent 37c2f5897f
commit a190e517fd

View File

@ -60,10 +60,11 @@ const nameserviceExpiryTests = () => {
});
test('Wait for expiry duration', (done) => {
setTimeout(done, 60 * 1000);
// Wait expirty time + time for a block to be executed
const expiryTime = 60 * 1000;
const waitTime = expiryTime + (3 * 1000);
// Wait some more time for block to be executed
setTimeout(done, 3 * 1000);
setTimeout(done, waitTime);
});
test('Check record expiry time', async () => {
@ -87,10 +88,11 @@ const nameserviceExpiryTests = () => {
});
test('Wait for expiry duration', (done) => {
setTimeout(done, 60 * 1000);
// Wait expirty time + time for a block to be executed
const expiryTime = 60 * 1000;
const waitTime = expiryTime + (3 * 1000);
// Wait some more time for block to be executed
setTimeout(done, 3 * 1000);
setTimeout(done, waitTime);
});
test('Check record deleted without bond balance', async () => {