Fixed problem created in the previous commit
This commit is contained in:
parent
5935d9fa59
commit
5e01587ed6
24
test/test.cc
24
test/test.cc
@ -523,12 +523,10 @@ TEST(BaseAuthTest, FromHTTPWatch) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
// NOTE: Until httpbin.org fixes issue #46, the following test is commented out.
|
cli.set_basic_auth("bad", "world");
|
||||||
// Plese see https://httpbin.org/digest-auth/auth/hello/world
|
auto res = cli.Get("/basic-auth/hello/world");
|
||||||
// cli.set_basic_auth("bad", "world");
|
ASSERT_TRUE(res != nullptr);
|
||||||
// auto res = cli.Get("/basic-auth/hello/world");
|
EXPECT_EQ(401, res->status);
|
||||||
// ASSERT_TRUE(res != nullptr);
|
|
||||||
// EXPECT_EQ(401, res->status);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -568,12 +566,14 @@ TEST(DigestAuthTest, FromHTTPWatch) {
|
|||||||
EXPECT_EQ(400, res->status);
|
EXPECT_EQ(400, res->status);
|
||||||
}
|
}
|
||||||
|
|
||||||
cli.set_digest_auth("bad", "world");
|
// NOTE: Until httpbin.org fixes issue #46, the following test is commented out.
|
||||||
for (auto path : paths) {
|
// Plese see https://httpbin.org/digest-auth/auth/hello/world
|
||||||
auto res = cli.Get(path.c_str());
|
// cli.set_digest_auth("bad", "world");
|
||||||
ASSERT_TRUE(res != nullptr);
|
// for (auto path : paths) {
|
||||||
EXPECT_EQ(400, res->status);
|
// auto res = cli.Get(path.c_str());
|
||||||
}
|
// ASSERT_TRUE(res != nullptr);
|
||||||
|
// EXPECT_EQ(400, res->status);
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user