Skip to content

Commit 8d63596

Browse files
author
Syed Jafri
committed
fix: add read() for streaming response body
1 parent d69fc5a commit 8d63596

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎sagemaker-serve/tests/integ/test_model_customization_deployment.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def test_deploy_from_training_job(self, training_job_name, endpoint_name, cleanu
154154
inference_component_name=invoke_ic_name,
155155
)
156156

157-
response_body = json.loads(invoke_response.body)
157+
response_body = json.loads(invoke_response.body.read())
158158

159159
# Validate response structure
160160
assert response_body is not None, f"Empty response from invoke on {invoke_ic_name}"

0 commit comments

Comments
 (0)