Fix authority expiry timeout

This commit is contained in:
IshaVenikar 2024-08-05 09:57:11 +05:30
parent 37c2f5897f
commit 5fe6c432de

View File

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