diff --git a/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/StoragePromiseJsunit.test.js b/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/StoragePromiseJsunit.test.js index 309638b95078403fed16745174e59924b647418a..ade36a6bd0924ebea42070515f2eee6496f5fa78 100755 --- a/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/StoragePromiseJsunit.test.js +++ b/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/StoragePromiseJsunit.test.js @@ -352,24 +352,14 @@ describe('storageTest', function () { */ it('testFlush00181', 0, async function (done) { mPref.putSync(KEY_TEST_STRING_ELEMENT, "test"); + mPref.flushSync(); const promise = mPref.flush(); promise.then((ret) => { - expect("test"). - assertEqual(mPref.getSync(KEY_TEST_STRING_ELEMENT, "default")); + expect("test").assertEqual(mPref.getSync(KEY_TEST_STRING_ELEMENT, "default")); }).catch((err) => { expect(null).assertFail(); }); await promise; done(); }) - - /** - * @tc.name const test - * @tc.number SUB_DDM_AppDataFWK_JSPreferences_Storage_0150 - * @tc.desc const test - */ - it('testConst001', 0, function () { - expect("80").assertEqual(mPref.MAX_KEY_LENHTH); - expect("8192").assertEqual(mPref.MAX_VALUE_LENHTH); - }) }) \ No newline at end of file