@@ -70,12 +70,12 @@ describe("fs", () => {
70
70
describe ( "chown" , ( ) => {
71
71
it ( "should chown existing file" , async ( ) => {
72
72
const file = await helper . createTmpFile ( ) ;
73
- await expect ( util . promisify ( fs . chown ) ( file , 1 , 1 ) )
73
+ await expect ( util . promisify ( nativeFs . chown ) ( file , 1000 , 1000 ) )
74
74
. resolves . toBeUndefined ( ) ;
75
75
} ) ;
76
76
77
77
it ( "should fail to chown nonexistent file" , async ( ) => {
78
- await expect ( util . promisify ( fs . chown ) ( helper . tmpFile ( ) , 1 , 1 ) )
78
+ await expect ( util . promisify ( fs . chown ) ( helper . tmpFile ( ) , 1000 , 1000 ) )
79
79
. rejects . toThrow ( "ENOENT" ) ;
80
80
} ) ;
81
81
} ) ;
@@ -198,13 +198,13 @@ describe("fs", () => {
198
198
it ( "should fchown existing file" , async ( ) => {
199
199
const file = await helper . createTmpFile ( ) ;
200
200
const fd = await util . promisify ( nativeFs . open ) ( file , "r" ) ;
201
- await expect ( util . promisify ( fs . fchown ) ( fd , 1 , 1 ) )
201
+ await expect ( util . promisify ( fs . fchown ) ( fd , 1000 , 1000 ) )
202
202
. resolves . toBeUndefined ( ) ;
203
203
await util . promisify ( nativeFs . close ) ( fd ) ;
204
204
} ) ;
205
205
206
206
it ( "should fail to fchown nonexistent file" , async ( ) => {
207
- await expect ( util . promisify ( fs . fchown ) ( 99999 , 1 , 1 ) )
207
+ await expect ( util . promisify ( fs . fchown ) ( 99999 , 1000 , 1000 ) )
208
208
. rejects . toThrow ( "EBADF" ) ;
209
209
} ) ;
210
210
} ) ;
@@ -275,7 +275,7 @@ describe("fs", () => {
275
275
it ( "should futimes existing file" , async ( ) => {
276
276
const file = await helper . createTmpFile ( ) ;
277
277
const fd = await util . promisify ( nativeFs . open ) ( file , "w" ) ;
278
- await expect ( util . promisify ( fs . futimes ) ( fd , 1 , 1 ) )
278
+ await expect ( util . promisify ( fs . futimes ) ( fd , 1000 , 1000 ) )
279
279
. resolves . toBeUndefined ( ) ;
280
280
await util . promisify ( nativeFs . close ) ( fd ) ;
281
281
} ) ;
@@ -311,12 +311,12 @@ describe("fs", () => {
311
311
describe ( "lchown" , ( ) => {
312
312
it ( "should lchown existing file" , async ( ) => {
313
313
const file = await helper . createTmpFile ( ) ;
314
- await expect ( util . promisify ( fs . lchown ) ( file , 1 , 1 ) )
314
+ await expect ( util . promisify ( fs . lchown ) ( file , 1000 , 1000 ) )
315
315
. resolves . toBeUndefined ( ) ;
316
316
} ) ;
317
317
318
318
it ( "should fail to lchown nonexistent file" , async ( ) => {
319
- await expect ( util . promisify ( fs . lchown ) ( helper . tmpFile ( ) , 1 , 1 ) )
319
+ await expect ( util . promisify ( fs . lchown ) ( helper . tmpFile ( ) , 1000 , 1000 ) )
320
320
. rejects . toThrow ( "ENOENT" ) ;
321
321
} ) ;
322
322
} ) ;
@@ -621,7 +621,10 @@ describe("fs", () => {
621
621
} ) ;
622
622
} ) ;
623
623
624
- it ( "should dispose" , ( ) => {
625
- client . dispose ( ) ;
624
+ it ( "should dispose" , ( done ) => {
625
+ setTimeout ( ( ) => {
626
+ client . dispose ( ) ;
627
+ done ( ) ;
628
+ } , 100 ) ;
626
629
} ) ;
627
630
} ) ;
0 commit comments