changed expects

This commit is contained in:
Francesco Rivola
2022-08-16 10:41:13 +02:00
parent e85ed44358
commit 8e9a9d05a7

View File

@@ -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();
});