Add a method for get authorities and update tests #18

Merged
nabarun merged 7 commits from deep-stack/registry-sdk:iv-get-authorities into main 2024-08-05 07:53:14 +00:00
Showing only changes of commit a190e517fd - Show all commits

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