From 83f31384ea9fd28fbeb29bd11a103c35e5c0aaaa Mon Sep 17 00:00:00 2001 From: Sehrope Sarkuni Date: Thu, 3 May 2018 07:29:11 -0400 Subject: [PATCH 1/3] Add node v10 to travis matrix --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) 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" From 2d841ed2d1b5372189c3c785e11ba9780d74dce6 Mon Sep 17 00:00:00 2001 From: Sehrope Sarkuni Date: Thu, 3 May 2018 07:57:47 -0400 Subject: [PATCH 2/3] Change network partition test to use socket.destroy() --- test/integration/client/network-partition-tests.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/client/network-partition-tests.js b/test/integration/client/network-partition-tests.js index 95eca8e73..70dcc92b7 100644 --- a/test/integration/client/network-partition-tests.js +++ b/test/integration/client/network-partition-tests.js @@ -46,7 +46,7 @@ Server.prototype.start = function (cb) { } Server.prototype.drop = function () { - this.socket.end() + this.socket.destroy() } Server.prototype.close = function (cb) { From c34b8bb7d23c7bd2e5fe7d0d9ecaec4bd2e4dd31 Mon Sep 17 00:00:00 2001 From: Sehrope Sarkuni Date: Thu, 3 May 2018 08:01:43 -0400 Subject: [PATCH 3/3] Change test to use Buffer.from(...) --- test/integration/client/network-partition-tests.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/client/network-partition-tests.js b/test/integration/client/network-partition-tests.js index 70dcc92b7..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())