mirror of
https://github.com/openharmony/drivers_adapter.git
synced 2026-07-21 06:05:27 -04:00
fix: fix hdf service status notify case fail issue
Signed-off-by: yuanbo <yuanbo@huawei.com>
This commit is contained in:
@@ -362,12 +362,11 @@ HWTEST_F(HdfServiceMangerHdiTest, ServMgrTest009, TestSize.Level1)
|
||||
callbacked = true;
|
||||
}
|
||||
}));
|
||||
constexpr int FIRST_WAIT = 20;
|
||||
OsalMSleep(FIRST_WAIT); // skip callback on register
|
||||
|
||||
int status = servmgr->RegisterServiceStatusListener(listener, DEVICE_CLASS_DEFAULT);
|
||||
ASSERT_EQ(status, HDF_SUCCESS);
|
||||
|
||||
constexpr int FIRST_WAIT = 20;
|
||||
OsalMSleep(FIRST_WAIT); // skip callback on register
|
||||
OHOS::MessageParcel data;
|
||||
OHOS::MessageParcel reply;
|
||||
OHOS::MessageOption option;
|
||||
|
||||
Reference in New Issue
Block a user