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 5250e4133c8e1e53fcd1be771151b8d8e89d323e..bee01d254c3e3f9fbb32a769b85856e320d38682 100644 --- a/distributeddatamgr/distributedKVStoretest/distributedKVStorejstest/hap/src/main/js/test/KvStoreBackupPromiseJsTest.js +++ b/distributeddatamgr/distributedKVStoretest/distributedKVStorejstest/hap/src/main/js/test/KvStoreBackupPromiseJsTest.js @@ -150,7 +150,7 @@ function publicRestoreSp(kvStore,file){ function publicRestore(kvStore){ console.log(`Test restore `) return new Promise(function(resolve, reject) { - kvStore.restore.then((data) => { + kvStore.restore().then((data) => { console.log("Test restore backupinfo information: " + JSON.stringify(data) ); resolve(data); }).catch((err) => {