fix: xts用例battery_hdi014偶现失败修复

Signed-off-by: chenjunwu <chenjunwu4@huawei.com>
This commit is contained in:
chenjunwu 2024-01-27 18:12:23 +08:00
parent 23b51d4599
commit e6674c4bd2

View File

@ -271,8 +271,8 @@ HWTEST_F(HdfBatteryHdiTest, HdfBatteryHdiTest014, TestSize.Level1)
{
printf("HdfBatteryHdiTest014: start.");
int curAverage = -1;
g_batteryInterface->GetCurrentAverage(curAverage);
EXPECT_TRUE(curAverage != 0);
int32_t ret = g_batteryInterface->GetCurrentAverage(curAverage);
EXPECT_EQ(0, ret);
printf("HdfBatteryHdiTest014: return.");
}