Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cbcd88d

Browse files
committed
missing required callbacks to async functions
1 parent 559ed47 commit cbcd88d

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

tests/automatic_tests/process/mocha_test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ describe('process', function() {
1717
setTimeout(function() {
1818
fs.exists(path.join(global.tests_dir, 'process', 'exit', 'a.txt'), function (exists) {
1919
if (exists) {
20-
fs.unlink(path.join(global.tests_dir, 'process', 'exit', 'a.txt'));
21-
done();
20+
fs.unlink(path.join(global.tests_dir, 'process', 'exit', 'a.txt'), done);
2221
} else {
2322
done('the event `exit` does not been called.');
2423
}

tests/automatic_tests/snapshot/mocha_test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ describe('snapshot', function() {
2828
})
2929

3030
after(function() {
31-
fs.unlink(path.join(global.tests_dir, 'snapshot', 'mytest.bin'));
32-
fs.unlink(path.join(global.tests_dir, 'snapshot', 'v8.log'));
31+
fs.unlink(path.join(global.tests_dir, 'snapshot', 'mytest.bin'), function(err) {if(err && err.code !== 'ENOENT') throw err});
32+
fs.unlink(path.join(global.tests_dir, 'snapshot', 'v8.log'), function(err) {if(err && err.code !== 'ENOENT') throw err});
3333
})
3434

3535
it('the native code could be exectuted',

0 commit comments

Comments
 (0)