mirror of
https://gitee.com/openharmony/xts_hats
synced 2024-11-23 06:50:00 +00:00
fix: xts用例battery_hdi014偶现失败修复
Signed-off-by: chenjunwu <chenjunwu4@huawei.com>
This commit is contained in:
parent
23b51d4599
commit
e6674c4bd2
@ -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.");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user