Browse Source

Commented out the unit test for digest auth.

yhirose 5 years ago
parent
commit
5935d9fa59
1 changed files with 10 additions and 5 deletions
  1. 10 5
      test/test.cc

+ 10 - 5
test/test.cc

@@ -523,10 +523,12 @@ TEST(BaseAuthTest, FromHTTPWatch) {
   }
 
   {
-    cli.set_basic_auth("bad", "world");
-    auto res = cli.Get("/basic-auth/hello/world");
-    ASSERT_TRUE(res != nullptr);
-    EXPECT_EQ(401, res->status);
+    // NOTE: Until httpbin.org fixes issue #46, the following test is commented out.
+    // Plese see https://httpbin.org/digest-auth/auth/hello/world
+    // cli.set_basic_auth("bad", "world");
+    // auto res = cli.Get("/basic-auth/hello/world");
+    // ASSERT_TRUE(res != nullptr);
+    // EXPECT_EQ(401, res->status);
   }
 }
 
@@ -2088,7 +2090,10 @@ TEST_F(ServerTest, KeepAlive) {
   Get(requests, "/hi");
   Get(requests, "/not-exist");
   Post(requests, "/empty", "", "text/plain");
-  Post(requests, "/empty", 0, [&](size_t offset, size_t length, httplib::DataSink &sink){}, "text/plain");
+  Post(
+      requests, "/empty", 0,
+      [&](size_t offset, size_t length, httplib::DataSink &sink) {},
+      "text/plain");
 
   std::vector<Response> responses;
   auto ret = cli_.send(requests, responses);