Skip to content

Commit

Permalink
Stop hitting example.com in tests (#420)
Browse files Browse the repository at this point in the history
it's timing out very often lately
  • Loading branch information
graebm authored Jan 10, 2023
1 parent 4bbda11 commit dd34461
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions integration-testing/http_client_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def test_simple_get_google(self):
run_command(simple_get_args)
def test_simple_get_h1(self):
"""make a simple GET request via HTTP/1.1 and make sure it succeeds"""
simple_get_args = elasticurl_cmd_prefix + ['-v', 'TRACE', '--http1_1', 'http://example.com']
simple_get_args = elasticurl_cmd_prefix + ['-v', 'TRACE', '--http1_1', 'http://httpbin.org/get']
run_command(simple_get_args)

def test_simple_post_h1(self):
Expand All @@ -100,7 +100,7 @@ def test_simple_download_h1(self):

def test_simple_get_h2(self):
"""make a simple GET request via HTTP2 and make sure it succeeds"""
simple_get_args = elasticurl_cmd_prefix + ['-v', 'TRACE', '--http2', 'https://example.com']
simple_get_args = elasticurl_cmd_prefix + ['-v', 'TRACE', '--http2', 'https://httpbin.org/get']
run_command(simple_get_args)

def test_simple_post_h2(self):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_stream_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ static int s_tester_init(struct sm_tester_options *options) {
if (options->uri_cursor) {
ASSERT_SUCCESS(aws_uri_init_parse(&s_tester.endpoint, alloc, options->uri_cursor));
} else {
struct aws_byte_cursor default_host = aws_byte_cursor_from_c_str("https://example.com");
struct aws_byte_cursor default_host = aws_byte_cursor_from_c_str("https://www.amazon.com");
ASSERT_SUCCESS(aws_uri_init_parse(&s_tester.endpoint, alloc, &default_host));
}

Expand Down

0 comments on commit dd34461

Please sign in to comment.