todo make tests working

This commit is contained in:
Jonas Zeunert
2018-09-26 20:59:50 +02:00
parent 0f8d28667c
commit a914b2b0c8
5 changed files with 6 additions and 7 deletions

View File

@@ -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;