@@ -37,15 +37,15 @@ const config = {
3737}
3838
3939if ( native ) {
40- suite . testAsync ( 'skipping SCRAM tests (on native)' , ( ) => { } )
40+ suite . test ( 'skipping SCRAM tests (on native)' , ( ) => { } )
4141 return
4242}
4343if ( ! config . user || ! config . password ) {
44- suite . testAsync ( 'skipping SCRAM tests (missing env)' , ( ) => { } )
44+ suite . test ( 'skipping SCRAM tests (missing env)' , ( ) => { } )
4545 return
4646}
4747
48- suite . testAsync ( 'can connect using sasl/scram with channel binding enabled (if using SSL)' , async ( ) => {
48+ suite . test ( 'can connect using sasl/scram with channel binding enabled (if using SSL)' , async ( ) => {
4949 const client = new pg . Client ( { ...config , enableChannelBinding : true } )
5050 let usingChannelBinding = false
5151 let hasPeerCert = false
@@ -58,7 +58,7 @@ suite.testAsync('can connect using sasl/scram with channel binding enabled (if u
5858 await client . end ( )
5959} )
6060
61- suite . testAsync ( 'can connect using sasl/scram with channel binding disabled' , async ( ) => {
61+ suite . test ( 'can connect using sasl/scram with channel binding disabled' , async ( ) => {
6262 const client = new pg . Client ( { ...config , enableChannelBinding : false } )
6363 let usingSASLWithoutChannelBinding = false
6464 client . connection . once ( 'authenticationSASLContinue' , ( ) => {
@@ -69,7 +69,7 @@ suite.testAsync('can connect using sasl/scram with channel binding disabled', as
6969 await client . end ( )
7070} )
7171
72- suite . testAsync ( 'sasl/scram fails when password is wrong' , async ( ) => {
72+ suite . test ( 'sasl/scram fails when password is wrong' , async ( ) => {
7373 const client = new pg . Client ( {
7474 ...config ,
7575 password : config . password + 'append-something-to-make-it-bad' ,
@@ -88,7 +88,7 @@ suite.testAsync('sasl/scram fails when password is wrong', async () => {
8888 assert . ok ( usingSasl , 'Should be using SASL for authentication' )
8989} )
9090
91- suite . testAsync ( 'sasl/scram fails when password is empty' , async ( ) => {
91+ suite . test ( 'sasl/scram fails when password is empty' , async ( ) => {
9292 const client = new pg . Client ( {
9393 ...config ,
9494 // We use a password function here so the connection defaults do not
0 commit comments