Skip to content

Commit

Permalink
test3010: work with hyper mode
Browse files Browse the repository at this point in the history
Closes #7209
  • Loading branch information
bagder committed Jun 10, 2021
1 parent 71da3f8 commit 77ae8f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions tests/data/test3010
Expand Up @@ -50,8 +50,8 @@ lib%TESTNUMBER
# Verify data after the test has been "shot"
<verify>
<stdout>
Retry-After: 2
Retry-After: 0
Retry-After 2
Retry-After 0
</stdout>
</verify>
</testcase>
6 changes: 3 additions & 3 deletions tests/libtest/lib3010.c
Expand Up @@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
* Copyright (C) 2020 - 2020, Nicolas Sterchele, <nicolas@sterchelen.net>
* Copyright (C) 2020 - 2021, Nicolas Sterchele, <nicolas@sterchelen.net>
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
Expand Down Expand Up @@ -43,7 +43,7 @@ int test(char *URL)
}
curl_easy_getinfo(curl, CURLINFO_REDIRECT_URL, &follow_url);
curl_easy_getinfo(curl, CURLINFO_RETRY_AFTER, &retry_after);
printf("Retry-After: %" CURL_FORMAT_CURL_OFF_T "\n", retry_after);
printf("Retry-After %" CURL_FORMAT_CURL_OFF_T "\n", retry_after);
curl_easy_setopt(curl, CURLOPT_URL, follow_url);
ret = curl_easy_perform(curl);
if(ret) {
Expand All @@ -54,7 +54,7 @@ int test(char *URL)

curl_easy_reset(curl);
curl_easy_getinfo(curl, CURLINFO_RETRY_AFTER, &retry_after);
printf("Retry-After: %" CURL_FORMAT_CURL_OFF_T "\n", retry_after);
printf("Retry-After %" CURL_FORMAT_CURL_OFF_T "\n", retry_after);
}

test_cleanup:
Expand Down

0 comments on commit 77ae8f2

Please sign in to comment.