diff --git a/distributeddatamgr/distributedKVStoretest/distributedKVStorejstest/hap/src/main/js/test/KvStoreBackupPromiseJsTest.js b/distributeddatamgr/distributedKVStoretest/distributedKVStorejstest/hap/src/main/js/test/KvStoreBackupPromiseJsTest.js index 513f2e4f94b9a72ef8e6274424f24d1ec4289939..470e3ec83c4c14b3a9246e73307ab150353684a0 100644 --- a/distributeddatamgr/distributedKVStoretest/distributedKVStorejstest/hap/src/main/js/test/KvStoreBackupPromiseJsTest.js +++ b/distributeddatamgr/distributedKVStoretest/distributedKVStorejstest/hap/src/main/js/test/KvStoreBackupPromiseJsTest.js @@ -131,6 +131,7 @@ function publicDeleteBackup(kvStore,files){ }) } catch (e) { console.log("111Test deleteBackup err information: " + e ); + reject(e); } }) } @@ -173,7 +174,6 @@ const optionLock = { securityLevel: distributedData.SecurityLevel.S1, } -var file = ''; var files =new Array(); export default function kvStoreBackupPromiseJsunittest(){