diff --git a/distributeddatamgr/kvStoretest/kvStorejstest/hap/src/main/js/test/SingleKvStoreCallbackJsunit.test.js b/distributeddatamgr/kvStoretest/kvStorejstest/hap/src/main/js/test/SingleKvStoreCallbackJsunit.test.js index 562a0293f0c6d21f2e83273beb5878c8e8030e46..8bcfb355c59bedbc6577e443a4f7be13b9bb046e 100644 --- a/distributeddatamgr/kvStoretest/kvStorejstest/hap/src/main/js/test/SingleKvStoreCallbackJsunit.test.js +++ b/distributeddatamgr/kvStoretest/kvStorejstest/hap/src/main/js/test/SingleKvStoreCallbackJsunit.test.js @@ -2263,11 +2263,7 @@ describe('singleKvStoreCallbackTest', function () { */ it('testSingleKvStoreCloseResultSet104', 0, async function (done) { console.info('SingleKvStoreCloseResultSetCallbackTest004'); - let resultSet = null; - await kvStore.getResultSet('batch_test_string_key').then((result) => { - console.info('SingleKvStoreCloseResultSetCallbackTest004 getResultSet success'); - resultSet = result; - }) + kvStore.closeResultSet("",(err, data) => { if(err != undefined){