Skip to content

Commit d644cb8

Browse files
committed
fix tests
1 parent a03c024 commit d644cb8

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

lib/stream.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@
77
module.exports.getStream = function getStream(ssl = false) {
88
const net = require('net')
99
if (typeof net.Socket === 'function') {
10-
console.log('using node socket');
1110
return net.Socket()
1211
}
1312
const { CloudflareSocket } = require('pg-cloudflare')
14-
console.log('using cloudflare socket');
1513
return new CloudflareSocket(ssl);
1614
}

test/integration/connection/test-connect-sha1.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ const mysql = require('../../../index.js');
44
const auth = require('../../../lib/auth_41.js');
55
const assert = require('assert');
66

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(
1010
params.authPluginData1,
1111
params.authPluginData2,
1212
params.authToken,

0 commit comments

Comments
 (0)