From 7fb163e28b902a95c481813922da830ac2d2ed5c Mon Sep 17 00:00:00 2001 From: Bill Pittman Date: Thu, 8 Aug 2024 15:56:43 -0500 Subject: [PATCH] NotificationTest: Fix bug in test wrt callback function --- test/extra/NotificationTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/extra/NotificationTest.cpp b/test/extra/NotificationTest.cpp index 852e62d..0adc624 100644 --- a/test/extra/NotificationTest.cpp +++ b/test/extra/NotificationTest.cpp @@ -85,7 +85,7 @@ TEST_F(NotificationTest, BasicNotificationTestWithPayload) { auto source_filter2 = getUUri(0x8001); auto on_rx2 = [](const v1::UMessage& message) { FAIL(); }; auto maybe_sink2 = communication::NotificationSink::create( - transport, std::move(on_rx), std::move(source_filter2)); + transport, std::move(on_rx2), std::move(source_filter2)); EXPECT_TRUE(maybe_sink2.has_value()); // Send the notification messages @@ -130,7 +130,7 @@ TEST_F(NotificationTest, BasicNotificationTestWithoutPayload) { auto source_filter2 = getUUri(0x8001); auto on_rx2 = [](const v1::UMessage& message) { FAIL(); }; auto maybe_sink2 = communication::NotificationSink::create( - transport, std::move(on_rx), std::move(source_filter2)); + transport, std::move(on_rx2), std::move(source_filter2)); EXPECT_TRUE(maybe_sink2.has_value()); // Send the notification messages