From 52acd1f4b69d26a593f581e3aac6f35b785bac0c Mon Sep 17 00:00:00 2001 From: yanglifeng1217 Date: Tue, 25 Jul 2023 18:12:23 +0800 Subject: [PATCH] Signed-off-by: yanglifeng1217 --- .../hap/src/main/js/test/PreferencesSyncJsunit.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 aeb4ed395..3e9fe9ff8 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); -- GitLab