未验证 提交 587b8e4d 编写于 作者: O openharmony_ci 提交者: Gitee

!1994...

!1994 【Distributeddatamgr】【Master】DataAbilityPredicatesJsunit.test.js,RdbstoreRdbstoreJsunit.test.js 文件修改
Merge pull request !1994 from Maowen/master
...@@ -27,7 +27,7 @@ const CREATE_TABLE_ALL_DATA_TYPE_SQL = "CREATE TABLE IF NOT EXISTS AllDataType " ...@@ -27,7 +27,7 @@ const CREATE_TABLE_ALL_DATA_TYPE_SQL = "CREATE TABLE IF NOT EXISTS AllDataType "
+ "primBooleanValue INTEGER , primByteValue INTEGER , primCharValue TEXT, `order` INTEGER);"; + "primBooleanValue INTEGER , primByteValue INTEGER , primCharValue TEXT, `order` INTEGER);";
const STORE_CONFIG = { const STORE_CONFIG = {
name: "Predicates.db", name: "DataAbilityPredicates.db",
} }
var rdbStore = undefined; var rdbStore = undefined;
var DOUBLE_MAX = 9223372036854775807; var DOUBLE_MAX = 9223372036854775807;
...@@ -53,7 +53,7 @@ describe('dataAbilityPredicatesTest', function () { ...@@ -53,7 +53,7 @@ describe('dataAbilityPredicatesTest', function () {
afterAll(async function () { afterAll(async function () {
console.info(TAG + 'afterAll') console.info(TAG + 'afterAll')
rdbStore = null rdbStore = null
await dataRdb.deleteRdbStore("Predicates.db"); await dataRdb.deleteRdbStore("DataAbilityPredicates.db");
}) })
function resultSize(resultSet) { function resultSize(resultSet) {
......
...@@ -31,8 +31,10 @@ describe('rdbStoreTest', function () { ...@@ -31,8 +31,10 @@ describe('rdbStoreTest', function () {
console.info(TAG + 'beforeEach') console.info(TAG + 'beforeEach')
}) })
afterEach(function () { afterEach(async function () {
console.info(TAG + 'afterEach') console.info(TAG + 'afterAll')
rdbStore = null
await dataRdb.deleteRdbStore("rdbstore.db");
}) })
afterAll(async function () { afterAll(async function () {
...@@ -60,7 +62,6 @@ describe('rdbStoreTest', function () { ...@@ -60,7 +62,6 @@ describe('rdbStoreTest', function () {
}) })
await storePromise await storePromise
storePromise = null storePromise = null
await dataRdb.deleteRdbStore("rdbstore.db");
done(); done();
console.log(TAG + "************* testRdbStore0001 end *************"); console.log(TAG + "************* testRdbStore0001 end *************");
}) })
...@@ -85,7 +86,6 @@ describe('rdbStoreTest', function () { ...@@ -85,7 +86,6 @@ describe('rdbStoreTest', function () {
}) })
await storePromise await storePromise
storePromise = null storePromise = null
await dataRdb.deleteRdbStore("rdbstore.db");
done(); done();
console.log(TAG + "************* testRdbStore0002 end *************"); console.log(TAG + "************* testRdbStore0002 end *************");
}) })
...@@ -133,7 +133,6 @@ describe('rdbStoreTest', function () { ...@@ -133,7 +133,6 @@ describe('rdbStoreTest', function () {
}) })
await storePromise await storePromise
storePromise = null storePromise = null
await dataRdb.deleteRdbStore("rdbstore.db");
done(); done();
console.log(TAG + "************* testRdbStore0004 end *************"); console.log(TAG + "************* testRdbStore0004 end *************");
}) })
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册