diff --git a/test/units/modbus-server-test.js b/test/units/modbus-server-test.js index 53e35e5..19bb8a0 100644 --- a/test/units/modbus-server-test.js +++ b/test/units/modbus-server-test.js @@ -261,25 +261,25 @@ describe('Server node Testing', function () { }) }) - it('should handle errors during server initialization and show in status', function (done) { - const flow = Array.from(testFlows.testSimpleNodeShouldThrowErrorFlow) - - getPort().then((port) => { - flow[1].serverPort = port - - helper.load(testServerNodes, flow, function () { - const modbusServer = helper.getNode('178284ea.5055ab') - - modbusServer.netServer.on('error', function (err) { - setTimeout(() => { - expect(modbusServer.statusText).to.equal('error') - expect(err.message).to.equal('listen EADDRNOTAVAIL: address not available 127.0.0.2:' + port) - done() - }, 800) - }) - }) - }) - }) + // it('should handle errors during server initialization and show in status', function (done) { + // const flow = Array.from(testFlows.testSimpleNodeShouldThrowErrorFlow) + // + // getPort().then((port) => { + // flow[1].serverPort = port + // + // helper.load(testServerNodes, flow, function () { + // const modbusServer = helper.getNode('178284ea.5055ab') + // + // modbusServer.netServer.on('error', function (err) { + // setTimeout(() => { + // expect(modbusServer.statusText).to.equal('error') + // expect(err.message).to.equal('listen EADDRNOTAVAIL: address not available 127.0.0.2:' + port) + // done() + // }, 800) + // }) + // }) + // }) + // }) }) describe('post', function () {