From 522f169b70282761ead2c125366aa35cf5cdd819 Mon Sep 17 00:00:00 2001 From: Jacob Domagala Date: Tue, 6 Jun 2023 18:17:38 +0200 Subject: [PATCH] #2140: Tests: Use new vt::invoke in unittest --- tests/unit/runnable/test_invoke.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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);