Skip to content

Commit ce4bc04

Browse files
committed
Improve test timeouts
1 parent 342bf55 commit ce4bc04

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1816,7 +1816,7 @@ t('subscribe reconnects and calls onsubscribe', { timeout: 4 }, async() => {
18161816
await subscribeSql.close()
18171817
await delay(500)
18181818
await sql`delete from test`
1819-
await delay(10)
1819+
await delay(100)
18201820
await unsubscribe()
18211821
return [
18221822
'2insert,Murray,,delete,1,',

tests/test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const tests = {}
1313
export const nt = () => ignored++
1414
export const ot = (...rest) => (only = true, test(true, ...rest))
1515
export const t = (...rest) => test(false, ...rest)
16-
t.timeout = 0.5
16+
t.timeout = 1
1717

1818
async function test(o, name, options, fn) {
1919
typeof options !== 'object' && (fn = options, options = {})

0 commit comments

Comments
 (0)