From 8f40f73072817dfe1f59487dd819ac44f28f4668 Mon Sep 17 00:00:00 2001 From: Falk Werner Date: Sun, 16 Feb 2020 22:58:28 +0100 Subject: [PATCH] fixed test expectation --- test/adapter/test_server_config.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/adapter/test_server_config.cc b/test/adapter/test_server_config.cc index 5a03f5c..cb176d6 100644 --- a/test/adapter/test_server_config.cc +++ b/test/adapter/test_server_config.cc @@ -138,7 +138,7 @@ TEST(server_config, set_mountpoint) wf_server_config_dispose(config); } -TEST(server_cnfig, set_mounpoint_factory) +TEST(server_config, set_mounpoint_factory) { wf_server_config * config = wf_server_config_create(); ASSERT_NE(nullptr, config); @@ -149,7 +149,7 @@ TEST(server_cnfig, set_mounpoint_factory) int value = 42; void * user_data = reinterpret_cast(&value); wf_server_config_set_mountpoint_factory(config, &create_mountpoint, user_data); - ASSERT_NE(&create_mountpoint, config->mountpoint_factory.create_mountpoint); + ASSERT_EQ(&create_mountpoint, config->mountpoint_factory.create_mountpoint); ASSERT_EQ(user_data, config->mountpoint_factory.user_data); ASSERT_EQ(nullptr, config->mountpoint_factory.dispose);