Skip to content

Commit 4912ecc

Browse files
committed
Use www.google.com for http2 tests
1 parent 30574fd commit 4912ecc

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.vscode/settings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"editor.formatOnSaveMode": "modifications",
44
"editor.formatOnSave": true,
55
"editor.codeActionsOnSave": {
6-
"source.fixAll": true
6+
"source.fixAll": "explicit"
77
},
88
"[yaml]": {
99
"editor.insertSpaces": true,
@@ -18,7 +18,7 @@
1818
"typescript.format.semicolons": "remove",
1919
"typescript.preferences.quoteStyle": "single",
2020
"[python]": {
21-
"editor.wordBasedSuggestions": true,
21+
"editor.wordBasedSuggestions": "matchingDocuments",
2222
"editor.defaultFormatter": null
2323
},
2424
"python.testing.unittestEnabled": false,

tests/http/proxy/test_http2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ class TestHttp2WithProxy(TestCase):
1818
def test_http2_via_proxy(self) -> None:
1919
assert self.PROXY
2020
response = httpx.get(
21-
'https://httpbin.org/get',
22-
headers={'accept': 'application/json'},
21+
"https://www.google.com",
22+
headers={"accept": "application/json"},
2323
verify=httpx.create_ssl_context(http2=True),
2424
timeout=httpx.Timeout(timeout=5.0),
2525
proxies={
26-
'all://': 'http://localhost:%d' % self.PROXY.flags.port,
26+
"all://": "http://localhost:%d" % self.PROXY.flags.port,
2727
},
2828
)
2929
self.assertEqual(response.status_code, 200)

0 commit comments

Comments
 (0)