From 5e01587ed64dd84b9db360f60af9e9c78b2cc7f6 Mon Sep 17 00:00:00 2001 From: yhirose Date: Sat, 9 May 2020 13:43:06 -0400 Subject: [PATCH] Fixed problem created in the previous commit --- test/test.cc | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/test/test.cc b/test/test.cc index 4b66ace..d2abd53 100644 --- a/test/test.cc +++ b/test/test.cc @@ -523,12 +523,10 @@ TEST(BaseAuthTest, FromHTTPWatch) { } { - // 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); + cli.set_basic_auth("bad", "world"); + auto res = cli.Get("/basic-auth/hello/world"); + ASSERT_TRUE(res != nullptr); + EXPECT_EQ(401, res->status); } } @@ -568,12 +566,14 @@ TEST(DigestAuthTest, FromHTTPWatch) { EXPECT_EQ(400, res->status); } - cli.set_digest_auth("bad", "world"); - for (auto path : paths) { - auto res = cli.Get(path.c_str()); - ASSERT_TRUE(res != nullptr); - EXPECT_EQ(400, 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_digest_auth("bad", "world"); + // for (auto path : paths) { + // auto res = cli.Get(path.c_str()); + // ASSERT_TRUE(res != nullptr); + // EXPECT_EQ(400, res->status); + // } } } #endif