Skip to content

Commit 2c49e99

Browse files
test(server): clarify encoded proxy response regression
1 parent 1a90531 commit 2c49e99

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

server/tests/test_routes_proxy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ def get_endpoint(sandbox_id: str, port: int, resolve_internal: bool = False) ->
439439
assert response.headers.get("x-hop-temp") is None
440440

441441

442-
def test_proxy_preserves_compressed_response_body(
442+
def test_proxy_streams_raw_body_for_content_encoded_response(
443443
client: TestClient,
444444
auth_headers: dict,
445445
monkeypatch,
@@ -450,7 +450,7 @@ def get_endpoint(sandbox_id: str, port: int, resolve_internal: bool = False) ->
450450
assert resolve_internal is True
451451
return Endpoint(endpoint="10.57.1.91:40109")
452452

453-
monkeypatch.setattr(lifecycle, "sandbox_service", StubService())
453+
monkeypatch.setattr(lifecycle, "sandbox_service", StubService)
454454

455455
decoded_body = b"<html>vnc</html>"
456456
encoded_body = gzip.compress(decoded_body)

0 commit comments

Comments
 (0)