diff --git a/distributeddatamgr/preferencesjstest/hap/src/main/js/test/PreferencesSyncJsunit.test.js b/distributeddatamgr/preferencesjstest/hap/src/main/js/test/PreferencesSyncJsunit.test.js index aeb4ed39548b0c31b716b8d2bbfe81e57a44d123..3e9fe9ff810efef42b722afbf1123c0a45d48a34 100644 --- a/distributeddatamgr/preferencesjstest/hap/src/main/js/test/PreferencesSyncJsunit.test.js +++ b/distributeddatamgr/preferencesjstest/hap/src/main/js/test/PreferencesSyncJsunit.test.js @@ -396,7 +396,7 @@ export default function PreferencesSyncTest() { expect().assertFail(); } console.log("flush done."); - await dataPreferences.removePreferencesFromCacheSync(context, NAME); + await mPreferences.removePreferencesFromCacheSync(context, NAME); let value = mPreferences.getSync(KEY_TEST_STRING_ELEMENT, "defaultvalue") console.log("SUB_DDM_Preferences_removePreferencesFromCacheSync_0100 end." + value); expect('test').assertEqual(value);