diff --git a/distributeddatamgr/relationalStoretest/relationalStoreJstest/hap/src/main/js/test/RelationalStoreBackupRestoreCallbackJsunit.test.js b/distributeddatamgr/relationalStoretest/relationalStoreJstest/hap/src/main/js/test/RelationalStoreBackupRestoreCallbackJsunit.test.js index 48ab294d6c3ca4428ce4d08dfebd1e7fafe91fc8..55355171b376c2383dd13f9d91dfa0732b0152d1 100644 --- a/distributeddatamgr/relationalStoretest/relationalStoreJstest/hap/src/main/js/test/RelationalStoreBackupRestoreCallbackJsunit.test.js +++ b/distributeddatamgr/relationalStoretest/relationalStoreJstest/hap/src/main/js/test/RelationalStoreBackupRestoreCallbackJsunit.test.js @@ -465,6 +465,7 @@ export default function relationalStoreBackupRestoreCallbackTest() { if (err) { console.error(`Restore failed, code is ${err.code},message is ${err.message}`); expect(err != null).assertFail(); + done(); } console.info(`Restore1 success.`); RdbStore.restore(DATABASE_BACKUP_NAME, function (error) {