diff --git a/libmuscle/cpp/src/libmuscle/tests/test_instance.cpp b/libmuscle/cpp/src/libmuscle/tests/test_instance.cpp index 3471ffc4..7ff08ef0 100644 --- a/libmuscle/cpp/src/libmuscle/tests/test_instance.cpp +++ b/libmuscle/cpp/src/libmuscle/tests/test_instance.cpp @@ -200,7 +200,7 @@ struct libmuscle_instance_base : ::testing::Test, ConnectedPortManagerFixture { std::vector()); MockSettingsManager::return_value.get_setting.side_effect = []( - Reference const &, Reference const &) -> SettingValue { + Reference const &, Reference const &) -> const SettingValue & { throw std::out_of_range("No settings set in mock, unset or replace side_effect"); }; }