From 207124b9c99207c637b3eb44a2e74fa6baa9717c Mon Sep 17 00:00:00 2001 From: hxf233333 Date: Fri, 26 Apr 2024 11:58:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dpower=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: hxf233333 --- power/test/unittest/src/hdf_power_runninglock_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/power/test/unittest/src/hdf_power_runninglock_test.cpp b/power/test/unittest/src/hdf_power_runninglock_test.cpp index b594f75bf..ba70baa41 100644 --- a/power/test/unittest/src/hdf_power_runninglock_test.cpp +++ b/power/test/unittest/src/hdf_power_runninglock_test.cpp @@ -858,7 +858,7 @@ HWTEST_F(HdfPowerRunningLockTest, HdfPowerRunningLockTest019, TestSize.Level1) runinglockInfo.name = runnninglockNameLabel + "phone.18"; runinglockInfo.type = RunningLockType::RUNNINGLOCK_BACKGROUND_PHONE; runinglockInfo.timeoutMs = RUNNINGLOCK_TIMEOUT_NONE; - uint32_t waitTimeOutMs = DEFAULT_TIMEOUT_FOR_TEST_MS + 10; + uint32_t waitTimeOutMs = DEFAULT_TIMEOUT_FOR_TEST_MS + 50; uint32_t originCount = RunningLockImpl::GetCount(runinglockInfo.type); @@ -868,7 +868,7 @@ HWTEST_F(HdfPowerRunningLockTest, HdfPowerRunningLockTest019, TestSize.Level1) usleep(waitTimeOutMs * US_PER_MS); EXPECT_EQ(originCount + 1, RunningLockImpl::GetCount(runinglockInfo.type)); - runinglockInfo.timeoutMs = RUNNINGLOCK_TIMEOUT_DEFAULT; + runinglockInfo.timeoutMs = DEFAULT_TIMEOUT_FOR_TEST_MS; EXPECT_EQ(HDF_SUCCESS, RunningLockImpl::Hold(runinglockInfo, powerState)); EXPECT_EQ(originCount + 1, RunningLockImpl::GetCount(runinglockInfo.type)); -- Gitee