Skip to content

Commit 71a5b46

Browse files
committed
tests: use main createQuery in tests
1 parent 5cc6c68 commit 71a5b46

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

test/common.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ common.createConnection = function(config) {
4747
return Mysql.createConnection(config);
4848
};
4949

50+
common.createQuery = Mysql.createQuery;
51+
5052
common.createTestDatabase = function createTestDatabase(connection, callback) {
5153
var database = common.testDatabase;
5254

test/unit/query/test-stream-before-queue.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
var assert = require('assert');
22
var common = require('../../common');
33

4-
var query = common.Connection.createQuery('SELECT 1');
4+
var query = common.createQuery('SELECT 1');
55
var stream = query.stream();
66

77
assert.doesNotThrow(function () {

0 commit comments

Comments
 (0)