Skip to content

Commit 2ec4734

Browse files
committed
Await connection ending to improve test
1 parent f062ce7 commit 2ec4734

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ t('Connects with no options', async() => {
4848
const sql = postgres()
4949

5050
const result = (await sql`select 1 as x`)[0].x
51-
sql.end()
51+
await sql.end()
5252

5353
return [1, result]
5454
})

0 commit comments

Comments
 (0)