Compare commits

..
Author SHA1 Message Date
IshaVenikar 5fe6c432de Fix authority expiry timeout 2024-08-05 09:57:11 +05:30
IshaVenikar 37c2f5897f Check for properties in returned authorities list
Lint & Build / lint_and_build (20.x) (pull_request) Successful in 2m28s
Tests / sdk_tests (pull_request) Failing after 18m33s
2024-08-02 16:06:37 +05:30
IshaVenikar 225aa2a6aa Check name and owner address for authorities 2024-08-02 15:15:05 +05:30
IshaVenikar 81dbf57fc2 Update check for list authorities by owner 2024-08-02 11:52:49 +05:30
IshaVenikar a3b78fd363 Check owner address for returned authorities 2024-08-02 10:04:14 +05:30
IshaVenikar 52cab23c70 Add method for get authorities 2024-08-01 16:44:21 +05:30
4 changed files with 7 additions and 12351 deletions
-1
View File
@@ -5,7 +5,6 @@ on:
branches:
- main
- release/**
- '*'
jobs:
sdk_tests:
-12345
View File
File diff suppressed because it is too large Load Diff
+4 -4
View File
@@ -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;
const waitTime = expiryTime + (3 * 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;
const waitTime = expiryTime + (3 * 1000);
// Wait some more time for block to be executed
const waitTime = expiryTime + (3 * 1000);
setTimeout(done, waitTime);
});
+3 -1
View File
@@ -183,11 +183,13 @@ 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]);
});
});