Commit 42a8f03 1 parent 5c70cef commit 42a8f03 Copy full SHA for 42a8f03
File tree 1 file changed +0
-18
lines changed
1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -24,13 +24,6 @@ const common = require('../common');
24
24
const assert = require ( 'assert' ) ;
25
25
const fs = require ( 'fs' ) ;
26
26
27
- function unlink ( pathname ) {
28
- try {
29
- fs . rmdirSync ( pathname ) ;
30
- } catch ( e ) {
31
- }
32
- }
33
-
34
27
common . refreshTmpDir ( ) ;
35
28
36
29
{
@@ -40,10 +33,6 @@ common.refreshTmpDir();
40
33
assert . strictEqual ( err , null ) ;
41
34
assert . strictEqual ( common . fileExists ( pathname ) , true ) ;
42
35
} ) ) ;
43
-
44
- process . on ( 'exit' , function ( ) {
45
- unlink ( pathname ) ;
46
- } ) ;
47
36
}
48
37
49
38
{
@@ -53,21 +42,14 @@ common.refreshTmpDir();
53
42
assert . strictEqual ( err , null ) ;
54
43
assert . strictEqual ( common . fileExists ( pathname ) , true ) ;
55
44
} ) ) ;
56
-
57
- process . on ( 'exit' , function ( ) {
58
- unlink ( pathname ) ;
59
- } ) ;
60
45
}
61
46
62
47
{
63
48
const pathname = `${ common . tmpDir } /test3` ;
64
49
65
- unlink ( pathname ) ;
66
50
fs . mkdirSync ( pathname ) ;
67
51
68
52
const exists = common . fileExists ( pathname ) ;
69
- unlink ( pathname ) ;
70
-
71
53
assert . strictEqual ( exists , true ) ;
72
54
}
73
55
You can’t perform that action at this time.
0 commit comments