Skip to content

Commit a10ef3c

Browse files
committed
test(pull): cope with old curl versions
1 parent 651da4a commit a10ef3c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pull/tests/integration/integration_test.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ TEST_F(BasicAuthIntegrationTest, shouldRejectRequestWithWrongPassword) {
262262
ASSERT_EQ(metrics.code, 401);
263263
}
264264

265+
#if defined(CURLAUTH_BEARER) && defined(CURLOPT_XOAUTH2_BEARER)
265266
TEST_F(BasicAuthIntegrationTest, shouldRejectWrongAuthorizationMethod) {
266267
fetchPrePerform_ = [](CURL* curl) {
267268
curl_easy_setopt(curl, CURLOPT_HTTPAUTH, CURLAUTH_BEARER);
@@ -271,6 +272,7 @@ TEST_F(BasicAuthIntegrationTest, shouldRejectWrongAuthorizationMethod) {
271272
const auto metrics = FetchMetrics(default_metrics_path_);
272273
ASSERT_EQ(metrics.code, 401);
273274
}
275+
#endif
274276

275277
TEST_F(BasicAuthIntegrationTest, shouldRejectMalformedBase64) {
276278
std::unique_ptr<curl_slist, decltype(&curl_slist_free_all)> header(

0 commit comments

Comments
 (0)