提交 b734f117 编写于 作者: L liangzhenyu123

解决用例互相影响问题

Signed-off-by: Nliangzhenyu123 <liangzhenyu6@huawei.com>
上级 405e3891
...@@ -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.
先完成此消息的编辑!
想要评论请 注册