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');
33const assert = require ( 'assert' ) ;
44const fs = require ( 'fs' ) ;
55
6- function unlink ( pathname ) {
7- try {
8- fs . rmdirSync ( pathname ) ;
9- } catch ( e ) {
10- }
11- }
12-
136common . refreshTmpDir ( ) ;
147
158{
@@ -19,10 +12,6 @@ common.refreshTmpDir();
1912 assert . strictEqual ( err , null ) ;
2013 assert . strictEqual ( common . fileExists ( pathname ) , true ) ;
2114 } ) ) ;
22-
23- process . on ( 'exit' , function ( ) {
24- unlink ( pathname ) ;
25- } ) ;
2615}
2716
2817{
@@ -32,21 +21,14 @@ common.refreshTmpDir();
3221 assert . strictEqual ( err , null ) ;
3322 assert . strictEqual ( common . fileExists ( pathname ) , true ) ;
3423 } ) ) ;
35-
36- process . on ( 'exit' , function ( ) {
37- unlink ( pathname ) ;
38- } ) ;
3924}
4025
4126{
4227 const pathname = `${ common . tmpDir } /test3` ;
4328
44- unlink ( pathname ) ;
4529 fs . mkdirSync ( pathname ) ;
4630
4731 const exists = common . fileExists ( pathname ) ;
48- unlink ( pathname ) ;
49-
5032 assert . strictEqual ( exists , true ) ;
5133}
5234
You can’t perform that action at this time.
0 commit comments