From d7c519f34ee88dbd15b1a2b5f77a8b628acb25e0 Mon Sep 17 00:00:00 2001 From: yanglifeng1217 Date: Sun, 8 Jan 2023 00:44:50 +0800 Subject: [PATCH] Signed-off-by: yanglifeng1217 --- .../main/js/test/RdbstorePredicatesJsunit.test.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/distributeddatamgr/relationalStoretest/RdbJstest/hap/src/main/js/test/RdbstorePredicatesJsunit.test.js b/distributeddatamgr/relationalStoretest/RdbJstest/hap/src/main/js/test/RdbstorePredicatesJsunit.test.js index e51ea5696..040950657 100644 --- a/distributeddatamgr/relationalStoretest/RdbJstest/hap/src/main/js/test/RdbstorePredicatesJsunit.test.js +++ b/distributeddatamgr/relationalStoretest/RdbJstest/hap/src/main/js/test/RdbstorePredicatesJsunit.test.js @@ -2185,10 +2185,11 @@ describe('rdbPredicatesTest', function () { predicates.like("stringValue", "ABCDEFGHIJKLMN").indexedBy(["characterValue"]); let result = await rdbStore.query(predicates); expect(3).assertEqual(result.rowCount); - }catch(err){ - errInfo = err + } catch (err) { + expect(err != undefined).assertTrue(); + console.info(TAG + "testIndexedBy0001 err " + err); + errInfo = err; } - expect(errInfo.code).assertEqual("401") done(); console.info(TAG + "************* testIndexedBy0001 end *************"); }) @@ -2206,10 +2207,11 @@ describe('rdbPredicatesTest', function () { predicates.like("stringValue", "ABCDEFGHIJKLMN").indexedBy(["characterValueX"]); let result = await rdbStore.query(predicates); expect(3).assertEqual(result.rowCount); - }catch(err){ - errInfo = err + } catch (err) { + expect(err != undefined).assertTrue(); + console.info(TAG + "testIndexedBy0002 err " + err); + errInfo = err; } - expect(errInfo.code).assertEqual("401") done(); console.info(TAG + "************* testIndexedBy0002 end *************"); }) -- GitLab