Skip to content

Commit dd34461

Browse files
authored
Stop hitting example.com in tests (#420)
it's timing out very often lately
1 parent 4bbda11 commit dd34461

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

integration-testing/http_client_test.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def test_simple_get_google(self):
8282
run_command(simple_get_args)
8383
def test_simple_get_h1(self):
8484
"""make a simple GET request via HTTP/1.1 and make sure it succeeds"""
85-
simple_get_args = elasticurl_cmd_prefix + ['-v', 'TRACE', '--http1_1', 'http://example.com']
85+
simple_get_args = elasticurl_cmd_prefix + ['-v', 'TRACE', '--http1_1', 'http://httpbin.org/get']
8686
run_command(simple_get_args)
8787

8888
def test_simple_post_h1(self):
@@ -100,7 +100,7 @@ def test_simple_download_h1(self):
100100

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

106106
def test_simple_post_h2(self):

tests/test_stream_manager.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ static int s_tester_init(struct sm_tester_options *options) {
236236
if (options->uri_cursor) {
237237
ASSERT_SUCCESS(aws_uri_init_parse(&s_tester.endpoint, alloc, options->uri_cursor));
238238
} else {
239-
struct aws_byte_cursor default_host = aws_byte_cursor_from_c_str("https://example.com");
239+
struct aws_byte_cursor default_host = aws_byte_cursor_from_c_str("https://www.amazon.com");
240240
ASSERT_SUCCESS(aws_uri_init_parse(&s_tester.endpoint, alloc, &default_host));
241241
}
242242

0 commit comments

Comments
 (0)