Browse Source

Merge pull request #232 from sux2mfgj/fix_the_invalidhost_test

Fix a test, ConnectionErrorTest::InvalidPort.
yhirose 6 years ago
parent
commit
89440ec322
1 changed files with 1 additions and 1 deletions
  1. 1 1
      test/test.cc

+ 1 - 1
test/test.cc

@@ -335,7 +335,7 @@ TEST(RangeTest, FromHTTPBin) {
 }
 }
 
 
 TEST(ConnectionErrorTest, InvalidHost) {
 TEST(ConnectionErrorTest, InvalidHost) {
-  auto host = "abcde.com";
+  auto host = "-abcde.com";
   auto sec = 2;
   auto sec = 2;
 
 
 #ifdef CPPHTTPLIB_OPENSSL_SUPPORT
 #ifdef CPPHTTPLIB_OPENSSL_SUPPORT