Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
porsager committed Apr 4, 2022
1 parent b536d0d commit 007e089
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cjs/tests/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1469,7 +1469,7 @@ t('does not prepare unsafe query by default', async() => {
return [false, result.some(x => x.name = result.statement.name)]
})

t('Recreate prepared statements on transformAssignedExpr error', async() => {
t('Recreate prepared statements on transformAssignedExpr error', { timeout: 1 }, async() => {
const insert = () => sql`insert into test (name) values (${ '1' }) returning name`
await sql`create table test (name text)`
await insert()
Expand Down Expand Up @@ -1766,7 +1766,7 @@ t('Cancel piped query works', { timeout: 1 }, async() => {
await sql`select 1`
const last = sql`select pg_sleep(0.3)`.execute()
const query = sql`select pg_sleep(2) as dig`
setTimeout(() => query.cancel(), 10)
setTimeout(() => query.cancel(), 100)
const error = await query.catch(x => x)
await last
return ['57014', error.code]
Expand Down
4 changes: 2 additions & 2 deletions deno/tests/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1471,7 +1471,7 @@ t('does not prepare unsafe query by default', async() => {
return [false, result.some(x => x.name = result.statement.name)]
})

t('Recreate prepared statements on transformAssignedExpr error', async() => {
t('Recreate prepared statements on transformAssignedExpr error', { timeout: 1 }, async() => {
const insert = () => sql`insert into test (name) values (${ '1' }) returning name`
await sql`create table test (name text)`
await insert()
Expand Down Expand Up @@ -1768,7 +1768,7 @@ t('Cancel piped query works', { timeout: 1 }, async() => {
await sql`select 1`
const last = sql`select pg_sleep(0.3)`.execute()
const query = sql`select pg_sleep(2) as dig`
setTimeout(() => query.cancel(), 10)
setTimeout(() => query.cancel(), 100)
const error = await query.catch(x => x)
await last
return ['57014', error.code]
Expand Down

0 comments on commit 007e089

Please sign in to comment.