Skip to content

Commit

Permalink
#2092: move msgs in test
Browse files Browse the repository at this point in the history
  • Loading branch information
stmcgovern committed May 8, 2023
1 parent d3e5c64 commit 1ee5caa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/scheduler/test_scheduler_timings.cc
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ void myHandler(MyMsg* msg) {
auto handler = auto_registry::makeAutoHandler<MyMsg, myHandler>();
auto msg = vt::makeMessage<MyMsg>();
msg->ms = time;
auto maker = vt::runnable::makeRunnable(msg, false, handler, 0)
auto maker = vt::runnable::makeRunnable(std::move(msg), false, handler, 0)
.withLBData(std::get<1>(v[i]).get(), id);
auto runnable = maker.getRunnableImpl();
runnable->setupHandler(handler);
Expand Down Expand Up @@ -123,7 +123,7 @@ TEST_F(TestSchedTimings, test_sched_msg) {

auto handler = auto_registry::makeAutoHandler<MyMsg, myHandler>();

auto maker = vt::runnable::makeRunnable(next_msg, false, handler, 0);
auto maker = vt::runnable::makeRunnable(std::move(next_msg), false, handler, 0);

auto runnable = maker.getRunnableImpl();
runnable->setupHandler(handler);
Expand Down

0 comments on commit 1ee5caa

Please sign in to comment.