diff --git a/utils/test/unittest/common/eventbus/event_bus_test.cpp b/utils/test/unittest/common/eventbus/event_bus_test.cpp index 8ca543ca2708480dfaffcdf0b594cf29faf504e3..400eafeff7ad0ee9ad6f2f3bc5407b062c16c15a 100644 --- a/utils/test/unittest/common/eventbus/event_bus_test.cpp +++ b/utils/test/unittest/common/eventbus/event_bus_test.cpp @@ -18,6 +18,7 @@ #include #include #include +#include #include "distributed_hardware_log.h" #include "event_bus.h" @@ -33,6 +34,7 @@ namespace { FakeListener *g_listener = nullptr; std::shared_ptr g_regHandler = nullptr; EventBus* g_eventBus = nullptr; + const int32_t TEST_TWENTY_MS = 20000; } void EventbusTest::SetUpTestCase(void) @@ -70,6 +72,7 @@ void EventbusTest::SetUp() void EventbusTest::TearDown() { + usleep(TEST_TWENTY_MS); if (g_obj != nullptr) { delete g_obj; g_obj = nullptr;