diff --git a/storage/storagefilemanagerjstest/src/main/js/default/test/filemanager.test.js b/storage/storagefilemanagerjstest/src/main/js/default/test/filemanager.test.js index 9301549c7f10d4280c2f953fcae37dfb30352618..e2ad87d59cf496efbb7b362ecb9d1f0c5cbe37ed 100644 --- a/storage/storagefilemanagerjstest/src/main/js/default/test/filemanager.test.js +++ b/storage/storagefilemanagerjstest/src/main/js/default/test/filemanager.test.js @@ -243,11 +243,16 @@ describe("filemanager_test", function () { it("filemanager_test_list_file_async_002", 0, async function (done) { try { let path = FILE_ROOT; - filemanager.listFile(path, "file", function(error,fileInfos){ - LENGTH = fileInfos.length; - expect(Array.isArray(fileInfos)).assertTrue(); - done(); - }); + let options = { + dev:{ + "name":"local" + }, + offset:0 + }; + let fileInfos = await filemanager.listFile(path, "file",options); + LENGTH = fileInfos.length; + expect(Array.isArray(fileInfos)).assertTrue(); + done(); } catch (error) { console.log("filemanager_test_list_file_async_002 has failed for " + error); expect(null).assertFail();