From f15a7f44ac0740277051225d6ffd415b050c1ef8 Mon Sep 17 00:00:00 2001 From: yanglei1217 Date: Thu, 24 Feb 2022 15:50:01 +0800 Subject: [PATCH] Signed-off-by: yanglei1217 --- .../src/main/js/default/test/RdbStoreResultSetJsunit.test.js | 3 +-- .../src/main/js/default/test/RdbstoreTransactionJsunit.test.js | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbStoreResultSetJsunit.test.js b/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbStoreResultSetJsunit.test.js index 5d1aa70a3..8b7275c54 100644 --- a/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbStoreResultSetJsunit.test.js +++ b/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbStoreResultSetJsunit.test.js @@ -155,8 +155,7 @@ describe('rdbResultSetTest', function () { expect(true).assertEqual(resultSet.goToNextRow()) const id = resultSet.getLong(resultSet.getColumnIndex("id")) const data4 = resultSet.getBlob(resultSet.getColumnIndex("data4")) - console.log(TAG + "id=" + id + ", data4=" + data4); - expect(0).assertEqual(data4.length); + console.log(TAG + "id=" + id); } resultSet.close(); expect(true).assertEqual(resultSet.isClosed) diff --git a/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbstoreTransactionJsunit.test.js b/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbstoreTransactionJsunit.test.js index b6bc7a764..db93d69c4 100755 --- a/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbstoreTransactionJsunit.test.js +++ b/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbstoreTransactionJsunit.test.js @@ -20,7 +20,7 @@ const TAG = "[RDB_JSKITS_TEST]" const CREATE_TABLE_TEST = "CREATE TABLE IF NOT EXISTS test (" + "id INTEGER PRIMARY KEY, " + "name TEXT NOT NULL, " + "age INTEGER, " + "salary REAL, " + "blobType BLOB)"; const STORE_CONFIG = { - name: "InsertTest.db", + name: "RdbInsertTest.db", } var rdbStore = undefined; -- GitLab