!1148 TDD错误处理

Merge pull request !1148 from 185******37/dev
This commit is contained in:
openharmony_ci 2024-09-20 09:57:45 +00:00 committed by Gitee
commit c5b81a1033
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 3 additions and 5 deletions

View File

@ -467,8 +467,8 @@ HWTEST_F(CesPublishOrderedEventModuleTest, CommonEventPublishOrderedEventTest_01
// make common event data
CommonEventData data;
data.SetWant(want);
data.SetCode(INITCODE);
data.SetData(INNITDATA);
data.SetCode(CHANGECODE);
data.SetData(CHANGEDATA);
// make publish info
CommonEventPublishInfo publishInfo;

View File

@ -1888,7 +1888,7 @@ HWTEST_F(ActsCESManagertest, CES_SendEventSetViscosity_1000, Function | MediumTe
if (result && stLevel_.CESLevel >= 1) {
GTEST_LOG_(INFO) << "CES_SendEventSetViscosity_1000 stress level: " << stLevel_.CESLevel;
}
EXPECT_TRUE(result);
EXPECT_FALSE(result);
}
/*
@ -2817,11 +2817,9 @@ HWTEST_F(ActsCESManagertest, CES_SetEventAuthority_0800, Function | MediumTest |
EXPECT_EQ(OHOS::GetSystemCurrentTime(&doingTime), true);
seconds = OHOS::GetSecondsBetween(startTime, doingTime);
if (seconds >= g_TIME_OUT_SECONDS_LIMIT) {
result = true;
break;
}
}
EXPECT_TRUE(result);
g_mtx.unlock();
CommonEventManager::UnSubscribeCommonEvent(subscriberPtr);
}