Skip to content
Permalink
Browse files

Merge pull request #1486

522ab79 Fixed HTTP auth tests for gcc 4.9 (Lee Clagett)
  • Loading branch information...
fluffypony committed Dec 21, 2016
2 parents 6f53915 + 522ab79 commit a5d0af95b52c6a0cd2c7fa75f1e0b1db5da1a9e5
Showing with 4 additions and 4 deletions.
  1. +4 −4 tests/unit_tests/http_auth.cpp
@@ -241,7 +241,7 @@ TEST(HTTP_Auth, MD5)
epee::net_utils::http::http_auth::login user{"foo", "bar"};
epee::net_utils::http::http_auth auth{user};

const auto response = auth.get_response(make_request({}));
const auto response = auth.get_response(make_request(fields{}));
ASSERT_TRUE(bool(response));
EXPECT_TRUE(is_unauthorized(*response));

@@ -290,7 +290,7 @@ TEST(HTTP_Auth, MD5_sess)
epee::net_utils::http::http_auth::login user{"foo", "bar"};
epee::net_utils::http::http_auth auth{user};

const auto response = auth.get_response(make_request({}));
const auto response = auth.get_response(make_request(fields{}));
ASSERT_TRUE(bool(response));
EXPECT_TRUE(is_unauthorized(*response));

@@ -342,7 +342,7 @@ TEST(HTTP_Auth, MD5_auth)
epee::net_utils::http::http_auth::login user{"foo", "bar"};
epee::net_utils::http::http_auth auth{user};

const auto response = auth.get_response(make_request({}));
const auto response = auth.get_response(make_request(fields{}));
ASSERT_TRUE(bool(response));
EXPECT_TRUE(is_unauthorized(*response));

@@ -410,7 +410,7 @@ TEST(HTTP_Auth, MD5_sess_auth)
epee::net_utils::http::http_auth::login user{"foo", "bar"};
epee::net_utils::http::http_auth auth{user};

const auto response = auth.get_response(make_request({}));
const auto response = auth.get_response(make_request(fields{}));
ASSERT_TRUE(bool(response));
EXPECT_TRUE(is_unauthorized(*response));

0 comments on commit a5d0af9

Please sign in to comment.
You can’t perform that action at this time.