fixed blocking queue

This commit is contained in:
Neeflix
2018-07-11 14:53:20 +02:00
parent 08d969b9b8
commit 3e08697607
2 changed files with 49 additions and 25 deletions

View File

@@ -6,7 +6,7 @@
*/
#include "../catch.hpp"
#include "catch.hpp"
#include "fakeit.hpp"
#include <map>
@@ -60,11 +60,11 @@ SCENARIO("Creating a Detector object", "")
AND_WHEN("an event can be found at gpio interface")
{
std::this_thread::sleep_for(std::chrono::milliseconds(50));
THEN("only the fitting event should be distributed by event notifier")
{
REQUIRE((bool)Verify(Method(event_notifier_mock, distribute_event).Using(event2)));
}
std::this_thread::sleep_for(std::chrono::milliseconds(50));
THEN("after some time the only the fitting event should be distributed by event notifier")
{
REQUIRE((bool)Verify(Method(event_notifier_mock, distribute_event).Using(event2)));
}
}
}
}