This commit is contained in:
parent
0198266526
commit
91ef7ad770
@ -295,6 +295,11 @@
|
|||||||
{
|
{
|
||||||
bool isEmpty=true;
|
bool isEmpty=true;
|
||||||
|
|
||||||
|
while(!commandQueue_.empty())
|
||||||
|
{
|
||||||
|
std::this_thread::sleep_for(std::chrono::milliseconds(100));
|
||||||
|
}
|
||||||
|
|
||||||
for (auto it = eventMap_.begin(); it != eventMap_.end(); ++it)
|
for (auto it = eventMap_.begin(); it != eventMap_.end(); ++it)
|
||||||
{
|
{
|
||||||
if ( !(*it).second.empty())
|
if ( !(*it).second.empty())
|
||||||
|
@ -87,6 +87,11 @@ SCENARIO("Basic Usage of EventManager", "[Manager]")
|
|||||||
manager = std::make_shared<EventManager::Manager>();
|
manager = std::make_shared<EventManager::Manager>();
|
||||||
}());
|
}());
|
||||||
|
|
||||||
|
REQUIRE_NOTHROW([&]()
|
||||||
|
{
|
||||||
|
manager->start();
|
||||||
|
}());
|
||||||
|
|
||||||
REQUIRE(manager->empty() == true);
|
REQUIRE(manager->empty() == true);
|
||||||
|
|
||||||
std::shared_ptr<myParticipant> participant0;
|
std::shared_ptr<myParticipant> participant0;
|
||||||
@ -107,11 +112,6 @@ SCENARIO("Basic Usage of EventManager", "[Manager]")
|
|||||||
|
|
||||||
REQUIRE(manager->empty() == false);
|
REQUIRE(manager->empty() == false);
|
||||||
|
|
||||||
REQUIRE_NOTHROW([&]()
|
|
||||||
{
|
|
||||||
manager->start();
|
|
||||||
}());
|
|
||||||
|
|
||||||
REQUIRE(manager->isRunning() == true);
|
REQUIRE(manager->isRunning() == true);
|
||||||
|
|
||||||
WHEN("emitting shutdown event")
|
WHEN("emitting shutdown event")
|
||||||
|
Loading…
Reference in New Issue
Block a user