Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
TrentHouliston committed Apr 30, 2024
1 parent f1616f5 commit dbb63e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/dsl/emit/Delay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class TestReactor : public test_util::TestBase<TestReactor> {
TestReactor(std::unique_ptr<NUClear::Environment> environment) : TestBase(std::move(environment), false) {

// Measure when messages were sent and received and print those values
on<Trigger<DelayedMessage>>().then([&](const DelayedMessage& m) {
on<Trigger<DelayedMessage>>().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);

Expand All @@ -65,7 +65,7 @@ class TestReactor : public test_util::TestBase<TestReactor> {
+ std::to_string(delta.count()));
});

on<Trigger<TargetTimeMessage>>().then([&](const TargetTimeMessage& m) {
on<Trigger<TargetTimeMessage>>().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);

Expand Down

0 comments on commit dbb63e7

Please sign in to comment.