diff --git a/storage/storagefileiojstest/src/main/js/default/test/module_fileio/class_dir/close.test.js b/storage/storagefileiojstest/src/main/js/default/test/module_fileio/class_dir/close.test.js index eaae248f6b1be48a605d2df29a101beea1db5a3a..cca39949f2041d9d57750fbbc8624cd648307a0f 100644 --- a/storage/storagefileiojstest/src/main/js/default/test/module_fileio/class_dir/close.test.js +++ b/storage/storagefileiojstest/src/main/js/default/test/module_fileio/class_dir/close.test.js @@ -66,10 +66,9 @@ describe('fileio_dir_close_read', function () { let dd = await fileio.opendir(dpath); expect(dd !== null).assertTrue(); dd.close(function (err) { - expect(!!err).assertTrue(); + expect(fileio.rmdirSync(dpath) == null).assertTrue(); + done(); }); - expect(fileio.rmdirSync(dpath) == null).assertTrue(); - done(); } catch (e) { console.log('fileio_test_dir_close_async_001 has failed for ' + e); expect(null).assertFail();