mirror of
https://github.com/lingble/clickhouse.git
synced 2025-11-29 09:13:34 +00:00
changed expects
This commit is contained in:
@@ -155,7 +155,9 @@ describe('Select', () => {
|
|||||||
}).query('SELECT number FROM system.numbers LIMIT 10').stream()
|
}).query('SELECT number FROM system.numbers LIMIT 10').stream()
|
||||||
.on('data', () => ++i)
|
.on('data', () => ++i)
|
||||||
.on('error', error => {
|
.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);
|
expect(i).to.be(0);
|
||||||
callback();
|
callback();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user