@@ -185,15 +185,17 @@ void DigestAuthTestFromHTTPWatch(Client& cli) {
185185 for (auto path : paths) {
186186 auto res = cli.Get (path.c_str ());
187187 ASSERT_TRUE (res != nullptr );
188- EXPECT_EQ (400 , res->status );
188+ EXPECT_EQ (401 , res->status );
189189 }
190190
191- cli.set_digest_auth (" bad" , " world" );
192- for (auto path : paths) {
193- auto res = cli.Get (path.c_str ());
194- ASSERT_TRUE (res != nullptr );
195- EXPECT_EQ (400 , res->status );
196- }
191+ // NOTE: Until httpbin.org fixes issue #46, the following test is commented
192+ // out. Plese see https://httpbin.org/digest-auth/auth/hello/world
193+ // cli.set_digest_auth("bad", "world");
194+ // for (auto path : paths) {
195+ // auto res = cli.Get(path.c_str());
196+ // ASSERT_TRUE(res != nullptr);
197+ // EXPECT_EQ(401, res->status);
198+ // }
197199 }
198200}
199201
@@ -266,7 +268,7 @@ void KeepAliveTest(Client& cli, bool basic) {
266268
267269
268270 {
269- int count = paths.size ();
271+ int count = static_cast < int >( paths.size () );
270272 while (count--) {
271273 auto &res = responses[i++];
272274 EXPECT_EQ (" {\n \" authenticated\" : true, \n \" user\" : \" hello\"\n }\n " , res.body );
0 commit comments