We need to expect longer time, because we need to wait for Queue
unregistration (next patch) to be done during module shutdown
Bug:
150174451
Bug:
150054218
Test: bluetooth_test_gd
Change-Id: If8a45b2df2f2210884e0901029c151c80fab0684
namespace bluetooth {
-constexpr std::chrono::milliseconds kModuleStopTimeout = std::chrono::milliseconds(20);
+constexpr std::chrono::milliseconds kModuleStopTimeout = std::chrono::milliseconds(2000);
ModuleFactory::ModuleFactory(std::function<Module*()> ctor) : ctor_(ctor) {
}
void Stop() override {
// A module is not considered stopped until after Stop() finishes
- test_module_no_dependency_handler = nullptr;
EXPECT_TRUE(GetModuleRegistry()->IsStarted<TestModuleNoDependency>());
}
};
}
void Stop() override {
- test_module_one_dependency_handler = GetHandler();
EXPECT_TRUE(GetModuleRegistry()->IsStarted<TestModuleNoDependency>());
// A module is not considered stopped until after Stop() finishes