@@ -1393,7 +1393,7 @@ t('Copy write as first works', async() => {
13931393t ( '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
14221422t ( '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