From 72e921d646f15e05dc991b0199a3daa29dd03ae2 Mon Sep 17 00:00:00 2001 From: chenxuihui Date: Wed, 11 Jan 2023 15:20:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9hidebug=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E7=94=A8=E4=BE=8B=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chenxuihui --- .../hicheckerjstest/src/main/js/test/HiChecker.test.js | 2 +- .../hidebugtestjstest/src/main/js/test/Hidebug.test.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hiviewdfx/hicheckertest/hicheckerjstest/src/main/js/test/HiChecker.test.js b/hiviewdfx/hicheckertest/hicheckerjstest/src/main/js/test/HiChecker.test.js index 9e3b49f2f..c04058738 100644 --- a/hiviewdfx/hicheckertest/hicheckerjstest/src/main/js/test/HiChecker.test.js +++ b/hiviewdfx/hicheckertest/hicheckerjstest/src/main/js/test/HiChecker.test.js @@ -85,7 +85,7 @@ describe('HiCheckerTest', function () { expect(hichecker.contains(0)).assertEqual(false); hichecker.addRule(999999); console.log('add wrong rule!'); - expect(hichecker.contains(-1)).assertEqual(false); + expect(hichecker.contains(999999)).assertEqual(false); }) /** diff --git a/hiviewdfx/hidebugtest/hidebugtestjstest/src/main/js/test/Hidebug.test.js b/hiviewdfx/hidebugtest/hidebugtestjstest/src/main/js/test/Hidebug.test.js index f69927142..4452e0fdd 100644 --- a/hiviewdfx/hidebugtest/hidebugtestjstest/src/main/js/test/Hidebug.test.js +++ b/hiviewdfx/hidebugtest/hidebugtestjstest/src/main/js/test/Hidebug.test.js @@ -30,7 +30,7 @@ describe('HidebugJsTest', function () { console.log('************* DFX_DFR_Hiprofiler_Interface_0600 Test start*************'); try { let heapSize = hidebug.getNativeHeapSize(); - expect(heapSize>BigInt(0)).assertTrue(); + expect(heapSize>=BigInt(0)).assertTrue(); } catch (error) { expect().assertFail(); } @@ -46,7 +46,7 @@ describe('HidebugJsTest', function () { console.log('************* DFX_DFR_Hiprofiler_Interface_0400 Test start*************'); try { let heapAllocatedSize = hidebug.getNativeHeapAllocatedSize(); - expect(heapAllocatedSize>BigInt(0)).assertTrue(); + expect(heapAllocatedSize>=BigInt(0)).assertTrue(); } catch (error) { expect().assertFail(); } @@ -62,7 +62,7 @@ describe('HidebugJsTest', function () { console.log('************* DFX_DFR_Hiprofiler_Interface_0500 Test start*************'); try { let heapFreeSize = hidebug.getNativeHeapFreeSize(); - expect(heapFreeSize>BigInt(0)).assertTrue(); + expect(heapFreeSize>=BigInt(0)).assertTrue(); } catch (error) { expect().assertFail(); } -- GitLab