mirror of
https://github.com/wassname/HackFlowy.git
synced 2026-07-14 01:10:13 +08:00
Initial work on the server
This commit is contained in:
Generated
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
var common = require('../../common');
|
||||
var connection = common.createConnection();
|
||||
var assert = require('assert');
|
||||
|
||||
connection.connect();
|
||||
connection.query('INVALID SQL');
|
||||
|
||||
var err;
|
||||
connection.on('error', function(_err) {
|
||||
assert.equal(err, undefined);
|
||||
err = _err;
|
||||
});
|
||||
|
||||
connection.end();
|
||||
|
||||
process.on('exit', function() {
|
||||
assert.equal(err.code, 'ER_PARSE_ERROR');
|
||||
assert.equal(Boolean(err.fatal), false);
|
||||
});
|
||||
Reference in New Issue
Block a user