diff --git a/tests/unit/runnable/test_invoke.cc b/tests/unit/runnable/test_invoke.cc index 5d7b210c0d..874ebdca75 100644 --- a/tests/unit/runnable/test_invoke.cc +++ b/tests/unit/runnable/test_invoke.cc @@ -82,14 +82,14 @@ std::unique_ptr nonCopyableFun() { } TEST_F(TestInvoke, test_invoke_call) { - vt::runnable::invoke(10); + vt::runnable::invoke<&voidWithArg>(10); EXPECT_EQ(test_value, 10); - auto b = vt::runnable::invoke(); + auto b = vt::runnable::invoke<&nonCopyableFun>(); EXPECT_EQ(test_value, 20); auto accumulate_result = - vt::runnable::invoke( + vt::runnable::invoke<&A::memberFunc>( b.get(), std::vector{10, 20, 30} ); EXPECT_EQ(accumulate_result, 60);