File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -980,7 +980,7 @@ t('Query and parameters are enumerable if debug is set', async() => {
980
980
981
981
t ( 'connect_timeout works' , async ( ) => {
982
982
const connect_timeout = 0.2
983
- const server = net . createServer ( )
983
+ const server = require ( ' net' ) . createServer ( )
984
984
server . listen ( )
985
985
const sql = postgres ( { port : server . address ( ) . port , connect_timeout } )
986
986
const start = Date . now ( )
@@ -1076,7 +1076,7 @@ t('no_prepare: true disables prepared transactions', async() => {
1076
1076
return [ 0 , result . count ]
1077
1077
} )
1078
1078
1079
- o ( 'Catches connection config errors' , async ( ) => {
1079
+ t ( 'Catches connection config errors' , async ( ) => {
1080
1080
const sql = postgres ( { user : { toString : ( ) => { throw new Error ( 'wat' ) } } , database : 'prut' } )
1081
1081
1082
1082
return [
@@ -1085,7 +1085,7 @@ o('Catches connection config errors', async() => {
1085
1085
]
1086
1086
} )
1087
1087
1088
- o ( 'Catches query format errors' , async ( ) => [
1088
+ t ( 'Catches query format errors' , async ( ) => [
1089
1089
'wat' ,
1090
1090
await sql . unsafe ( { toString : ( ) => { throw new Error ( 'wat' ) } } ) . catch ( ( e ) => e . message )
1091
1091
] )
You can’t perform that action at this time.
0 commit comments