Skip to content

Commit 9f828a4

Browse files
committed
Fix tests
1 parent 451acbc commit 9f828a4

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tests/index.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -1393,7 +1393,7 @@ t('Copy write as first works', async() => {
13931393
t('Copy from file works', async() => {
13941394
await sql`create table test (x int, y int, z int)`
13951395
await new Promise(r => fs
1396-
.createReadStream('copy.csv')
1396+
.createReadStream(path.join(__dirname, 'copy.csv'))
13971397
.pipe(sql`copy test from stdin`.writable())
13981398
.on('finish', r)
13991399
)
@@ -1421,7 +1421,7 @@ t('Copy from works in transaction', async() => {
14211421

14221422
t('Copy from abort works', async() => {
14231423
const sql = postgres(options)
1424-
const readable = fs.createReadStream('copy.csv')
1424+
const readable = fs.createReadStream(path.join(__dirname, 'copy.csv'))
14251425

14261426
await sql`create table test (x int, y int, z int)`
14271427
await sql`TRUNCATE TABLE test`
@@ -1450,7 +1450,8 @@ t('Recreate prepared statements on transformAssignedExpr error', async() => {
14501450
await insert()
14511451
await sql`alter table test alter column name type int using name::integer`
14521452
return [
1453-
1, (await insert())[0].name,
1453+
1,
1454+
(await insert())[0].name,
14541455
await sql`drop table test`
14551456
]
14561457
})
@@ -1462,7 +1463,8 @@ t('Recreate prepared statements on RevalidateCachedQuery error', async() => {
14621463
await select()
14631464
await sql`alter table test alter column name type int using name::integer`
14641465
return [
1465-
1, (await select())[0].name,
1466+
1,
1467+
(await select())[0].name,
14661468
await sql`drop table test`
14671469
]
14681470
})

0 commit comments

Comments
 (0)