forked from cerc-io/registry-sdk
Compare commits
1
Commits
iv-timeout
..
v0.2.6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f93a297857 |
@@ -60,10 +60,10 @@ const nameserviceExpiryTests = () => {
|
||||
});
|
||||
|
||||
test('Wait for expiry duration', (done) => {
|
||||
// Wait for expiry time + time for a block to be executed
|
||||
const expiryTime = 60 * 1000;
|
||||
|
||||
// Wait some more time for block to be executed
|
||||
const waitTime = expiryTime + (3 * 1000);
|
||||
|
||||
setTimeout(done, waitTime);
|
||||
});
|
||||
|
||||
@@ -88,10 +88,10 @@ const nameserviceExpiryTests = () => {
|
||||
});
|
||||
|
||||
test('Wait for expiry duration', (done) => {
|
||||
// Wait for expiry time + time for a block to be executed
|
||||
const expiryTime = 60 * 1000;
|
||||
|
||||
// Wait some more time for block to be executed
|
||||
const waitTime = expiryTime + (3 * 1000);
|
||||
|
||||
setTimeout(done, waitTime);
|
||||
});
|
||||
|
||||
|
||||
+1
-3
@@ -183,13 +183,11 @@ const namingTests = () => {
|
||||
expect(authorities.length).toEqual(4);
|
||||
expectedEntryKeys.forEach(key => {
|
||||
authorities.forEach((authority: any) => {
|
||||
expect(authority).toHaveProperty('name');
|
||||
expect(authority.entry).toHaveProperty(key);
|
||||
});
|
||||
});
|
||||
authorities.forEach((authority: any, index: number) => {
|
||||
expect(authority).toHaveProperty('name');
|
||||
expect(authority.entry).toHaveProperty('ownerAddress');
|
||||
expect(authority.entry).toHaveProperty('status');
|
||||
expect(authority).toMatchObject(reservedAuthorities[index]);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user