File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
test/integration/connection Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 7
7
module . exports . getStream = function getStream ( ssl = false ) {
8
8
const net = require ( 'net' )
9
9
if ( typeof net . Socket === 'function' ) {
10
- console . log ( 'using node socket' ) ;
11
10
return net . Socket ( )
12
11
}
13
12
const { CloudflareSocket } = require ( 'pg-cloudflare' )
14
- console . log ( 'using cloudflare socket' ) ;
15
13
return new CloudflareSocket ( ssl ) ;
16
14
}
Original file line number Diff line number Diff line change @@ -4,9 +4,9 @@ const mysql = require('../../../index.js');
4
4
const auth = require ( '../../../lib/auth_41.js' ) ;
5
5
const assert = require ( 'assert' ) ;
6
6
7
- function authenticate ( params , cb ) {
8
- const doubleSha = auth . doubleSha1 ( 'testpassword' ) ;
9
- const isValid = auth . verifyToken (
7
+ async function authenticate ( params , cb ) {
8
+ const doubleSha = await auth . doubleSha1 ( 'testpassword' ) ;
9
+ const isValid = await auth . verifyToken (
10
10
params . authPluginData1 ,
11
11
params . authPluginData2 ,
12
12
params . authToken ,
You can’t perform that action at this time.
0 commit comments