Skip to content

Commit

Permalink
test: update public host test for new networking policy
Browse files Browse the repository at this point in the history
see #692
  • Loading branch information
pinheadmz committed Aug 12, 2022
1 parent 093ed24 commit 69e0759
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/node-http-test.js
Expand Up @@ -49,7 +49,7 @@ describe('Node HTTP', function() {
assert.strictEqual(pub.brontidePort, null);
});

it('should have public address: regtest, listen', async () => {
it('should not have public address: regtest, listen', async () => {
const network = Network.get('regtest');

const node = new FullNode({
Expand All @@ -73,9 +73,9 @@ describe('Node HTTP', function() {
const {public: pub} = pool;

assert.strictEqual(pub.listen, true);
assert.notStrictEqual(pub.host, null); // will be "discovered" using DNS
assert.strictEqual(pub.port, network.port);
assert.strictEqual(pub.brontidePort, network.brontidePort);
assert.strictEqual(pub.host, null); // we don't discover from external
assert.strictEqual(pub.port, null);
assert.strictEqual(pub.brontidePort, null);
});

it('should not have public address: main', async () => {
Expand Down

0 comments on commit 69e0759

Please sign in to comment.