Add a method for get authorities and update tests #18
@ -60,10 +60,11 @@ const nameserviceExpiryTests = () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
test('Wait for expiry duration', (done) => {
|
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, waitTime);
|
||||||
setTimeout(done, 3 * 1000);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
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);
|
// 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, waitTime);
|
||||||
setTimeout(done, 3 * 1000);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
test('Check record deleted without bond balance', async () => {
|
test('Check record deleted without bond balance', async () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user