forked from cerc-io/laconic-sdk
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c6a37ac419 |
@@ -57,7 +57,7 @@ Follow these steps to run the tests:
|
||||
- In laconicd repo run:
|
||||
|
||||
```bash
|
||||
TEST_NAMESERVICE_EXPIRY=true ./init.sh
|
||||
TEST_REGISTRY_EXPIRY=true ./init.sh
|
||||
```
|
||||
|
||||
- Export the private key and change it in `.env` file again using:
|
||||
|
||||
@@ -40,7 +40,7 @@ const nameserviceExpiryTests = () => {
|
||||
fee
|
||||
)
|
||||
|
||||
const [record] = await registry.queryRecords({ type: watcher.record.type, version: watcher.record.version }, true);
|
||||
const [record] = await registry.queryRecords({ type: 'watcher', version: watcher.record.version }, true);
|
||||
recordExpiryTime = new Date(record.expiryTime);
|
||||
|
||||
const [bond] = await registry.getBondsByIds([bondId]);
|
||||
@@ -63,7 +63,7 @@ const nameserviceExpiryTests = () => {
|
||||
});
|
||||
|
||||
test('Check record expiry time', async() => {
|
||||
const [record] = await registry.queryRecords({ type: watcher.record.type, version: watcher.record.version }, true);
|
||||
const [record] = await registry.queryRecords({ type: 'watcher', version: watcher.record.version }, true);
|
||||
const updatedExpiryTime = new Date(record.expiryTime);
|
||||
expect(updatedExpiryTime.getTime()).toBeGreaterThan(recordExpiryTime.getTime());
|
||||
recordExpiryTime = updatedExpiryTime;
|
||||
@@ -87,7 +87,7 @@ const nameserviceExpiryTests = () => {
|
||||
});
|
||||
|
||||
test('Check record deleted without bond balance', async() => {
|
||||
const records = await registry.queryRecords({ type: watcher.record.type, version: watcher.record.version }, true);
|
||||
const records = await registry.queryRecords({ type: 'watcher', version: watcher.record.version }, true);
|
||||
expect(records).toHaveLength(0);
|
||||
})
|
||||
|
||||
|
||||
@@ -4,4 +4,4 @@ record:
|
||||
repo_registration_record_cid: QmSnuWmxptJZdLJpKRarxBMS2Ju2oANVrgbr2xWbie9b2D
|
||||
build_artifact_cid: QmP8jTG1m9GSDJLCbeWhVSVgEzCPPwXRdCRuJtQ5Tz9Kc9
|
||||
tls_cert_cid: QmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR
|
||||
version: 1.0.18
|
||||
version: 1.0.17
|
||||
|
||||
Reference in New Issue
Block a user