2010-10-30 09:33:53 +08:00
|
|
|
var helper = require(__dirname+'/test-helper');
|
|
|
|
var client = helper.client();
|
|
|
|
|
|
|
|
test("empty query message handling", function() {
|
|
|
|
client.query("");
|
2010-11-01 03:43:10 +08:00
|
|
|
assert.emits(client.connection, 'emptyQuery');
|
2010-10-30 09:33:53 +08:00
|
|
|
client.on('drain', client.end.bind(client));
|
|
|
|
});
|