Skip to content

Commit 632d0ad

Browse files
committed
Improve test timings
1 parent 3c4e90a commit 632d0ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ t('listen reconnects after connection error', { timeout: 3 }, async() => {
691691
await delay(1000)
692692

693693
await sql.notify('test', 'b')
694-
await delay(50)
694+
await delay(200)
695695
sql.end()
696696

697697
return ['ab', xs.join('')]
@@ -1760,7 +1760,7 @@ t('Cancel running query works', async() => {
17601760
return ['57014', error.code]
17611761
})
17621762

1763-
t('Cancel piped query works', async() => {
1763+
t('Cancel piped query works', { timeout: 1 }, async() => {
17641764
await sql`select 1`
17651765
const last = sql`select pg_sleep(0.2)`.execute()
17661766
const query = sql`select pg_sleep(2) as dig`

0 commit comments

Comments
 (0)