Skip to content

Commit

Permalink
changed integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
randomlogin committed Mar 5, 2024
1 parent 627f3be commit 2b52d29
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions integration/test/hesiod-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ describe('Hesiod', function() {
});

const {answer} = await util.resolver.resolve(qs);
assert.strictEqual(answer.length, 5);
assert.strictEqual(answer.length, 6);

assert.strictEqual(answer[0].name, 'hash.tip.chain.hnsd.');
assert.strictEqual(answer[0].data.txt[0], util.node.chain.tip.hash.toString('hex'));
Expand All @@ -120,14 +120,17 @@ describe('Hesiod', function() {
assert.strictEqual(answer[1].data.txt[0], String(util.node.chain.tip.height));
assert.strictEqual(answer[1].data.txt[0], '6000');

assert.strictEqual(answer[2].name, 'time.tip.chain.hnsd.');
assert.strictEqual(answer[2].data.txt[0], String(util.node.chain.tip.time));
assert.strictEqual(answer[2].name, 'name_root.tip.chain.hnsd.');
assert.strictEqual(answer[2].data.txt[0], util.node.chain.tip.treeRoot.toString('hex'));

assert.strictEqual(answer[3].name, 'time.tip.chain.hnsd.');
assert.strictEqual(answer[3].data.txt[0], String(util.node.chain.tip.time));

assert.strictEqual(answer[3].name, 'synced.chain.hnsd.');
assert.strictEqual(answer[3].data.txt[0], 'true');
assert.strictEqual(answer[4].name, 'synced.chain.hnsd.');
assert.strictEqual(answer[4].data.txt[0], 'true');

assert.strictEqual(answer[4].name, 'progress.chain.hnsd.');
assert.strictEqual(answer[4].data.txt[0], '1.000000');
assert.strictEqual(answer[5].name, 'progress.chain.hnsd.');
assert.strictEqual(answer[5].data.txt[0], '1.000000');
});
});

Expand Down

0 comments on commit 2b52d29

Please sign in to comment.