diff --git a/.travis.yml b/.travis.yml index dbe804cef..e0fb505d9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,6 +17,9 @@ matrix: - node_js: "9" addons: postgresql: "9.6" + - node_js: "10" + addons: + postgresql: "9.6" - node_js: "lts/carbon" addons: postgresql: "9.1" diff --git a/test/integration/client/network-partition-tests.js b/test/integration/client/network-partition-tests.js index 95eca8e73..e7198a47d 100644 --- a/test/integration/client/network-partition-tests.js +++ b/test/integration/client/network-partition-tests.js @@ -22,7 +22,7 @@ Server.prototype.start = function (cb) { this.socket.on('data', function (data) { // deny request for SSL if (data.length == 8) { - this.socket.write(new Buffer('N', 'utf8')) + this.socket.write(Buffer.from('N', 'utf8')) // consider all authentication requests as good } else if (!data[0]) { this.socket.write(buffers.authenticationOk()) @@ -46,7 +46,7 @@ Server.prototype.start = function (cb) { } Server.prototype.drop = function () { - this.socket.end() + this.socket.destroy() } Server.prototype.close = function (cb) {