From c3d0579d9bc36f49dc1e0a5ddfc5d37b161f4ca1 Mon Sep 17 00:00:00 2001 From: Gianmatteo Palmieri Date: Tue, 9 Apr 2024 13:35:58 +0200 Subject: [PATCH] fix(test): expect warning instead of error in exceptions names test Signed-off-by: Gianmatteo Palmieri --- unit_tests/engine/test_rule_loader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unit_tests/engine/test_rule_loader.cpp b/unit_tests/engine/test_rule_loader.cpp index 6cf6ad38..1fd1ecc0 100644 --- a/unit_tests/engine/test_rule_loader.cpp +++ b/unit_tests/engine/test_rule_loader.cpp @@ -981,6 +981,6 @@ TEST_F(test_falco_engine, exceptions_names_not_unique) - [curl 127.0.0.1] )END"; - ASSERT_FALSE(load_rules(rules_content, "rules.yaml")); - ASSERT_TRUE(check_error_message("Exceptions names in the same object must be unique")); + ASSERT_TRUE(load_rules(rules_content, "rules.yaml")); + ASSERT_TRUE(check_warning_message("Multiple definitions of exception")); } \ No newline at end of file