]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
Fix warning test case (#1322)
authorTom Christie <tom@tomchristie.com>
Thu, 24 Sep 2020 16:50:30 +0000 (17:50 +0100)
committerGitHub <noreply@github.com>
Thu, 24 Sep 2020 16:50:30 +0000 (18:50 +0200)
tests/client/test_auth.py

index efbfcc36c43f8836ecd5a9e52e815ac144994ed8..677fb9f6194695d6b5892f89c99fa1d6c9a1b1fb 100644 (file)
@@ -173,7 +173,7 @@ async def test_basic_auth_with_stream() -> None:
 
     async with httpx.AsyncClient(transport=MockTransport(app), auth=auth) as client:
         async with client.stream("GET", url) as response:
-            response.read()
+            await response.aread()
 
     assert response.status_code == 200
     assert response.json() == {"auth": "Basic dG9tY2hyaXN0aWU6cGFzc3dvcmQxMjM="}