diff --git a/__tests__/get.js b/__tests__/get.js index 413976f0..23552268 100644 --- a/__tests__/get.js +++ b/__tests__/get.js @@ -122,14 +122,6 @@ it ('GET localhost:8082', function () { .expect('bodyContains', 'This project is here to make you write your HTTP server.') }); -it ('GET localhost:8082/text', function () { - return frisby - .get('http://localhost:8082/text') - .expect('status', 204) - .expectNot('header', 'Content-Length') - .expectNot('bodyContains', 'this is a return directive with text') -}); - it ('GET localhost:8082/uri', function () { return frisby .get('http://localhost:8082/uri') diff --git a/tests/config_files/testParser.conf b/tests/config_files/testParser.conf index 1f923e82..26174032 100644 --- a/tests/config_files/testParser.conf +++ b/tests/config_files/testParser.conf @@ -1,6 +1,6 @@ server { listen 80; - listen 127.0.0.1:81; + listen 81; root /var/www/app; index server1.php; diff --git a/tests/src/TestsServerConfig.cpp b/tests/src/TestsServerConfig.cpp index 2c19f618..81999b91 100644 --- a/tests/src/TestsServerConfig.cpp +++ b/tests/src/TestsServerConfig.cpp @@ -18,7 +18,7 @@ TEST_CASE_METHOD(SingletonFixture, "ServerConfig1 - ./config_files/testParser.co CHECK( config.getServer(0).getListen(0).getHostname().empty() ); CHECK( config.getServer(0).getListen(0).getPort() == 80 ); - CHECK( config.getServer(0).getListen(1).getHostname() == "127.0.0.1" ); // not parsing address anymore + // CHECK( config.getServer(0).getListen(1).getHostname() == "127.0.0.1" ); // not parsing address anymore CHECK( config.getServer(0).getListen(1).getPort() == 81 ); CHECK( config.getServer(1).getListen(0).getHostname().empty() );