未验证 提交 285da922 编写于 作者: O openharmony_ci 提交者: Gitee

!5917 【Distributeddatamgr】【master】用例优化

Merge pull request !5917 from 梁梁/master
...@@ -663,7 +663,7 @@ describe('rdbstoreInsertTest', function () { ...@@ -663,7 +663,7 @@ describe('rdbstoreInsertTest', function () {
"blobType": u8, "blobType": u8,
} }
const valueBuckets = [valueBucket1, valueBucket2, valueBucket3] const valueBuckets = [valueBucket1, valueBucket2, valueBucket3]
await rdbStore.executeSql(CREATE_TABLE_NAME + "callback1" + CREATE_TABLE).then(async() => { await rdbStore.executeSql(CREATE_TABLE_NAME + "callback1" + CREATE_TABLE).then(async () => {
console.info(TAG + "Batch insert data start") console.info(TAG + "Batch insert data start")
await rdbStore.batchInsert("testcallback1", valueBuckets, async (err, data) => { await rdbStore.batchInsert("testcallback1", valueBuckets, async (err, data) => {
if(err != null){ if(err != null){
...@@ -715,6 +715,7 @@ describe('rdbstoreInsertTest', function () { ...@@ -715,6 +715,7 @@ describe('rdbstoreInsertTest', function () {
console.info("BatchInsert1 error " + e); console.info("BatchInsert1 error " + e);
} }
} }
done();
}) })
resultSet = null resultSet = null
}) })
...@@ -783,6 +784,7 @@ describe('rdbstoreInsertTest', function () { ...@@ -783,6 +784,7 @@ describe('rdbstoreInsertTest', function () {
console.info("BatchInsert2 error " + e); console.info("BatchInsert2 error " + e);
} }
} }
done();
}) })
}) })
...@@ -889,6 +891,7 @@ describe('rdbstoreInsertTest', function () { ...@@ -889,6 +891,7 @@ describe('rdbstoreInsertTest', function () {
console.info("BatchInsert1 error " + e); console.info("BatchInsert1 error " + e);
} }
} }
done();
}) })
}) })
resultSet = null resultSet = null
...@@ -943,6 +946,7 @@ describe('rdbstoreInsertTest', function () { ...@@ -943,6 +946,7 @@ describe('rdbstoreInsertTest', function () {
console.info("BatchInsert1 error " + e); console.info("BatchInsert1 error " + e);
} }
} }
done();
}) })
}) })
resultSet = null; resultSet = null;
...@@ -1005,6 +1009,7 @@ describe('rdbstoreInsertTest', function () { ...@@ -1005,6 +1009,7 @@ describe('rdbstoreInsertTest', function () {
console.info("BatchInsert1 error " + e); console.info("BatchInsert1 error " + e);
} }
} }
done();
}) })
}) })
resultSet = null; resultSet = null;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册