From 344b9881d7a180d8d2286d07413c0fce3730b600 Mon Sep 17 00:00:00 2001 From: chenxuihui Date: Tue, 14 Jun 2022 19:01:42 +0800 Subject: [PATCH] hilog debug level switch bug fix Signed-off-by: chenxuihui --- .../hilogjstest/src/main/js/default/test/HilogJsTest.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hiviewdfx/hilogjstest/src/main/js/default/test/HilogJsTest.js b/hiviewdfx/hilogjstest/src/main/js/default/test/HilogJsTest.js index 4577dfbc7..788b00bfb 100755 --- a/hiviewdfx/hilogjstest/src/main/js/default/test/HilogJsTest.js +++ b/hiviewdfx/hilogjstest/src/main/js/default/test/HilogJsTest.js @@ -119,7 +119,7 @@ describe('HilogJsTest', function () { it('testHilogJsApi06', 2, function () { console.info('testHilogJsApi06 start'); const res = hilog.isLoggable(0xD001400, "HILOGTEST", 3); - expect(res).assertEqual(true); + expect(res).assertEqual(false); console.info('testHilogJsApi06 end'); }) @@ -135,7 +135,7 @@ describe('HilogJsTest', function () { for (var i = 0; i < 1000; i++){ tag += "HILOGTEST" } - expect(res).assertEqual(true); + expect(res).assertEqual(false); console.info('testHilogJsApi07 end'); }) @@ -147,7 +147,7 @@ describe('HilogJsTest', function () { it('testHilogJsApi08', 2, function () { console.info('testHilogJsApi08 start'); const res = hilog.isLoggable(0xD001400, "", 3); - expect(res).assertEqual(true); + expect(res).assertEqual(false); console.info('testHilogJsApi08 end'); }) -- GitLab