From 81529fdbe7b4cd6f42f911dcd63fccb65daec6b4 Mon Sep 17 00:00:00 2001 From: John Colvin Date: Mon, 17 Apr 2023 09:26:41 -0400 Subject: [PATCH] chore: Remove irrelevant test for config fallback url The 'fallback url' was removed from config a few months ago (this test should have been removed with it) --- src/lib/config/tests/config_tests.cpp | 36 --------------------------- 1 file changed, 36 deletions(-) diff --git a/src/lib/config/tests/config_tests.cpp b/src/lib/config/tests/config_tests.cpp index 27510bbe9..ed5c0119d 100644 --- a/src/lib/config/tests/config_tests.cpp +++ b/src/lib/config/tests/config_tests.cpp @@ -407,42 +407,6 @@ TEST_CASE("Configuration Tests", "[config]") { REQUIRE(config::get().name() == "good"); } - SECTION("fallback_test") { - // HTTPServer main; - HTTPServer fallback; - // std::string main_url = "http://localhost:" + - // boost::lexical_cast(main.port()) + "/"; - std::string main_url = "http://does_not_exist:12345/"; - // main.stop(); - std::string fallback_url = - "http://127.0.0.1:" + - boost::lexical_cast(fallback.port()) + "/"; - std::string response = "HTTP/1.0 200 OK\r\n" - "Content-Type: text/plain\r\n\r\n"; - - std::string content = "FooGroup {\n" - " value {\n" - " group: \"http_group\"\n" - " foo {\n" - " name: \"http\"\n" - " id: 80\n" - "}}}\n"; - - fallback.add_response("/spark.conf", response, content); - - fallback.start(); - initialize_for_test( - "include: '" + main_url + - "'\n" - "fallback: '" + - fallback_url + "'\n", - false); - fallback.stop(); - - REQUIRE(get().foo().name() == "http"); - REQUIRE(get().foo().id() == 80); - } - SECTION("macro_definition_order_test") { // The $is_crusible test // o2_cme_enabled depends on Foo which has a rule which depends on