diff --git a/tests/dsl/emit/Delay.cpp b/tests/dsl/emit/Delay.cpp index 7ffcf3e3..34ddbeca 100644 --- a/tests/dsl/emit/Delay.cpp +++ b/tests/dsl/emit/Delay.cpp @@ -56,7 +56,7 @@ class TestReactor : public test_util::TestBase { TestReactor(std::unique_ptr environment) : TestBase(std::move(environment), false) { // Measure when messages were sent and received and print those values - on>().then([&](const DelayedMessage& m) { + on>().then([](const DelayedMessage& m) { auto true_delta = test_util::round_to_test_units(NUClear::clock::now() - m.time); auto delta = test_util::round_to_test_units(m.delay); @@ -65,7 +65,7 @@ class TestReactor : public test_util::TestBase { + std::to_string(delta.count())); }); - on>().then([&](const TargetTimeMessage& m) { + on>().then([](const TargetTimeMessage& m) { auto true_delta = test_util::round_to_test_units(NUClear::clock::now() - m.time); auto delta = test_util::round_to_test_units(m.target - m.time);