Merge "Fix callback test to only verify registration" into udc-dev

This commit is contained in:
Xiang Wang 2023-03-18 21:00:34 +00:00 committed by Android (Google) Code Review
commit 2da977681b

View file

@ -134,7 +134,6 @@ TEST_P(ThermalAidlTest, RegisterThermalChangedCallbackTest) {
// Expect to succeed with different callback
status = mThermal->registerThermalChangedCallback(localThermalCallback);
ASSERT_TRUE(status.isOk()) << status.getMessage();
ASSERT_TRUE(localThermalCallback->waitForCallback(200ms));
// Remove the local callback
status = mThermal->unregisterThermalChangedCallback(localThermalCallback);
ASSERT_TRUE(status.isOk()) << status.getMessage();
@ -158,7 +157,6 @@ TEST_P(ThermalAidlTest, RegisterThermalChangedCallbackWithTypeTest) {
status = mThermal->registerThermalChangedCallbackWithType(localThermalCallback,
TemperatureType::SKIN);
ASSERT_TRUE(status.isOk()) << status.getMessage();
ASSERT_TRUE(localThermalCallback->waitForCallback(200ms));
// Remove the local callback
status = mThermal->unregisterThermalChangedCallback(localThermalCallback);
ASSERT_TRUE(status.isOk()) << status.getMessage();