From 9f5d5f133f54906f2d277e72a9cb67102b84ea52 Mon Sep 17 00:00:00 2001 From: 15929983503 Date: Sat, 7 May 2022 15:20:29 +0800 Subject: [PATCH] hitrace test suite bugfix Signed-off-by: 15929983503 --- .../main/ets/MainAbility/test/ByTraceHiDebugJsunit.test.ets | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hiviewdfx/hitracechaintest/entry/src/main/ets/MainAbility/test/ByTraceHiDebugJsunit.test.ets b/hiviewdfx/hitracechaintest/entry/src/main/ets/MainAbility/test/ByTraceHiDebugJsunit.test.ets index eb72a746a..8bc7c69c6 100644 --- a/hiviewdfx/hitracechaintest/entry/src/main/ets/MainAbility/test/ByTraceHiDebugJsunit.test.ets +++ b/hiviewdfx/hitracechaintest/entry/src/main/ets/MainAbility/test/ByTraceHiDebugJsunit.test.ets @@ -115,7 +115,7 @@ export default function byTraceHiDebugJsunit() { it('DFX_HiLog_LogLevel_WARN_0100', 0, async function (done) { console.log("************* DFX_HiLog_LogLevel_WARN_0100 Test start*************"); try { - expect(5).assertEqual(hiLog.WARN); + expect(5).assertEqual(hiLog.LogLevel.WARN); } catch (error) { expect().assertFail(); } @@ -131,7 +131,7 @@ export default function byTraceHiDebugJsunit() { it('DFX_HiLog_LogLevel_ERROR_0100', 0, async function (done) { console.log("************* DFX_HiLog_LogLevel_ERROR_0100 Test start*************"); try { - expect(6).assertEqual(hiLog.ERROR); + expect(6).assertEqual(hiLog.LogLevel.ERROR); } catch (error) { expect().assertFail(); } @@ -147,7 +147,7 @@ export default function byTraceHiDebugJsunit() { it('DFX_HiLog_LogLevel_FATAL_0100', 0, async function (done) { console.log("************* DFX_HiLog_LogLevel_FATAL_0100 Test start*************"); try { - expect(7).assertEqual(hiLog.FATAL); + expect(7).assertEqual(hiLog.LogLevel.FATAL); } catch (error) { expect().assertFail(); } -- GitLab