From ec470a011139d193fe90844a934edab23aea839f Mon Sep 17 00:00:00 2001 From: chenxuihui Date: Wed, 28 Dec 2022 10:17:06 +0800 Subject: [PATCH] =?UTF-8?q?hidebug=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D1018?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chenxuihui --- .../hidebugtestjstest/src/main/js/test/Hidebug.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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