From 8e9a9d05a736ec6e095f99a1038d52d5a478e458 Mon Sep 17 00:00:00 2001 From: Francesco Rivola Date: Tue, 16 Aug 2022 10:41:13 +0200 Subject: [PATCH] changed expects --- test/test.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/test.js b/test/test.js index 232f5a5..d0977bf 100644 --- a/test/test.js +++ b/test/test.js @@ -155,7 +155,9 @@ describe('Select', () => { }).query('SELECT number FROM system.numbers LIMIT 10').stream() .on('data', () => ++i) .on('error', error => { - expect(error.message).to.be.equal(`getaddrinfo ENOTFOUND ${host}`); + expect(error.code).to.be.equal('ENOTFOUND'); + expect(error.syscall).to.be.equal('getaddrinfo'); + expect(error.hostname).to.be.equal(host); expect(i).to.be(0); callback(); });