todo make tests working
This commit is contained in:
@@ -98,7 +98,6 @@ SCENARIO("An event should be distributed", "[distribute]")
|
||||
GIVEN("An event")
|
||||
{
|
||||
Event event(0, 0, "test");
|
||||
auto event_ptr = std::make_shared<Event>(event);
|
||||
|
||||
Mock<IBlockingQueue<Event>> queue_mock;
|
||||
Fake(Method(queue_mock, push));
|
||||
@@ -109,7 +108,7 @@ SCENARIO("An event should be distributed", "[distribute]")
|
||||
|
||||
WHEN("The event comes in")
|
||||
{
|
||||
notifier.distribute_event(event_ptr);
|
||||
notifier.distribute_event(event);
|
||||
THEN("The event gets queued")
|
||||
{
|
||||
notifier.is_running = false;
|
||||
|
||||
Reference in New Issue
Block a user