From 2bb0d2ab46bf8104ab6e0b96fdefbeb20aa4c9e4 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Thu, 12 Jan 2023 15:50:15 +0100 Subject: Move https.* to http.* --- tests/Makefile | 4 ---- tests/test-https.cpp | 28 ---------------------------- tests/test-webserver.cpp | 2 ++ 3 files changed, 2 insertions(+), 32 deletions(-) delete mode 100644 tests/test-https.cpp (limited to 'tests') diff --git a/tests/Makefile b/tests/Makefile index 14af291..c04cbcd 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -38,7 +38,6 @@ UNITS=\ config.cpp \ error.cpp \ http.cpp \ - https.cpp \ plugin.cpp \ privileges.cpp \ response.cpp \ @@ -52,7 +51,6 @@ TESTSRC=\ test-config.cpp \ test-environment.cpp \ test-http.cpp \ - test-https.cpp \ test-plugin.cpp \ test-privileges.cpp \ test-response.cpp \ @@ -91,8 +89,6 @@ error.o: ../error.cpp $(CXX) $(CXXFLAGS) $(CXXTESTFLAGS) -c $< -o $@ http.o: ../http.cpp $(CXX) $(CXXFLAGS) $(CXXTESTFLAGS) -c $< -o $@ -https.o: ../https.cpp - $(CXX) $(CXXFLAGS) $(CXXTESTFLAGS) -c $< -o $@ plugin.o: ../plugin.cpp $(CXX) $(CXXFLAGS) $(CXXTESTFLAGS) -c $< -o $@ privileges.o: ../privileges.cpp diff --git a/tests/test-https.cpp b/tests/test-https.cpp deleted file mode 100644 index cb917e9..0000000 --- a/tests/test-https.cpp +++ /dev/null @@ -1,28 +0,0 @@ -#include -#include -#include -#include - -#include -#include - -#include -#include - -#include "https.h" - -using namespace std::string_literals; - -class HTTPSFixture -{ -public: - HTTPSFixture(){} - ~HTTPSFixture(){} - void setup(){} - void teardown(){} -}; - -BOOST_FIXTURE_TEST_CASE(https, HTTPSFixture) -{ -} - diff --git a/tests/test-webserver.cpp b/tests/test-webserver.cpp index 727356d..85859df 100644 --- a/tests/test-webserver.cpp +++ b/tests/test-webserver.cpp @@ -1113,6 +1113,7 @@ echo -ne "HTTP_HOST: $HTTP_HOST\r\n" BOOST_FIXTURE_TEST_CASE(empty_config, Fixture) { WebserverProcess serverProcess{""}; + std::this_thread::sleep_for(std::chrono::milliseconds(50)); BOOST_REQUIRE_EQUAL(serverProcess.is_running(), false); } @@ -1123,5 +1124,6 @@ BOOST_FIXTURE_TEST_CASE(incomplete_config, Fixture) www-data )CONFIG"}; WebserverProcess serverProcess{webserver_config}; + std::this_thread::sleep_for(std::chrono::milliseconds(50)); BOOST_REQUIRE_EQUAL(serverProcess.is_running(), false); } -- cgit v1.2.3