From d3a507c3ff1684bce4601fe77e76aa7a1b9a842a Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Thu, 18 Apr 2019 00:04:02 +0200 Subject: [PATCH] fix(core): update --- test/test.ts | 1 + ts/smartnetwork.classes.smartnetwork.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test.ts b/test/test.ts index c01fc2c..191dc57 100644 --- a/test/test.ts +++ b/test/test.ts @@ -20,6 +20,7 @@ tap.test('should determine wether a port is free', async () => { tap.test('should scan a port', async () => { await expect(testSmartNetwork.isRemotePortAvailable('google.com:80')).to.eventually.be.true; + await expect(testSmartNetwork.isRemotePortAvailable('google.com', 80)).to.be.eventually.true; await expect(testSmartNetwork.isRemotePortAvailable('67.207.79.63:12346')).to.eventually.be.false; }); diff --git a/ts/smartnetwork.classes.smartnetwork.ts b/ts/smartnetwork.classes.smartnetwork.ts index 89819aa..9e4b959 100644 --- a/ts/smartnetwork.classes.smartnetwork.ts +++ b/ts/smartnetwork.classes.smartnetwork.ts @@ -112,7 +112,7 @@ export class SmartNetwork { plugins.portscanner.checkPortStatus(port, domainPart, (err, status ) => { if (err) { - console.log(err); + // console.log(err); return done.resolve(false); } if (status === 'open') {