fixed blocking queue
This commit is contained in:
@@ -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)));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user