diff --git a/Changes.md b/CHANGELOG.md similarity index 100% rename from Changes.md rename to CHANGELOG.md diff --git a/test/net_utils.js b/test/net_utils.js index bcb1e2d..7f9bed7 100644 --- a/test/net_utils.js +++ b/test/net_utils.js @@ -1331,6 +1331,7 @@ describe('get_mx', function () { }) describe('resolve_mx_hosts', function () { + beforeEach((done) => { this.net_utils = require('../index') done() @@ -1350,6 +1351,7 @@ describe('resolve_mx_hosts', function () { ] it('resolves mx hosts to IPs, tnpi.net', async () => { + this.timeout(7000) const r = await this.net_utils.resolve_mx_hosts([ { exchange: 'mail.theartfarm.com', priority: 10, from_dns: 'tnpi.net' }, ]) @@ -1357,6 +1359,7 @@ describe('resolve_mx_hosts', function () { }) it('resolves mx hosts to IPs, gmail.com', async () => { + this.timeout(7000) const mxes = await this.net_utils.get_mx('gmail.com') assert.equal(mxes.length, 5) const r = await this.net_utils.resolve_mx_hosts(mxes) @@ -1374,16 +1377,16 @@ describe('resolve_mx_hosts', function () { }) it('resolve_mx_hosts, gmail.com', async () => { + this.timeout(5000) const mxes = await this.net_utils.get_mx('gmail.com') const r = await this.net_utils.resolve_mx_hosts(mxes) - // console.log(r) assert.equal(r.length, 10) }) it('resolve_mx_hosts, yahoo.com', async () => { + this.timeout(5000) const mxes = await this.net_utils.get_mx('yahoo.com') const r = await this.net_utils.resolve_mx_hosts([mxes[0]]) - // console.log(r) assert.equal(r.length, 8) }) })