File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,6 @@ const common = require('../common');
3
3
const assert = require ( 'assert' ) ;
4
4
const fs = require ( 'fs' ) ;
5
5
6
- function unlink ( pathname ) {
7
- try {
8
- fs . rmdirSync ( pathname ) ;
9
- } catch ( e ) {
10
- }
11
- }
12
-
13
6
common . refreshTmpDir ( ) ;
14
7
15
8
{
@@ -19,10 +12,6 @@ common.refreshTmpDir();
19
12
assert . strictEqual ( err , null ) ;
20
13
assert . strictEqual ( common . fileExists ( pathname ) , true ) ;
21
14
} ) ) ;
22
-
23
- process . on ( 'exit' , function ( ) {
24
- unlink ( pathname ) ;
25
- } ) ;
26
15
}
27
16
28
17
{
@@ -32,21 +21,14 @@ common.refreshTmpDir();
32
21
assert . strictEqual ( err , null ) ;
33
22
assert . strictEqual ( common . fileExists ( pathname ) , true ) ;
34
23
} ) ) ;
35
-
36
- process . on ( 'exit' , function ( ) {
37
- unlink ( pathname ) ;
38
- } ) ;
39
24
}
40
25
41
26
{
42
27
const pathname = `${ common . tmpDir } /test3` ;
43
28
44
- unlink ( pathname ) ;
45
29
fs . mkdirSync ( pathname ) ;
46
30
47
31
const exists = common . fileExists ( pathname ) ;
48
- unlink ( pathname ) ;
49
-
50
32
assert . strictEqual ( exists , true ) ;
51
33
}
52
34
You can’t perform that action at this time.
0 commit comments