diff --git a/python/ray/serve/utils.py b/python/ray/serve/utils.py index b4fdbf497..10753fcb5 100644 --- a/python/ray/serve/utils.py +++ b/python/ray/serve/utils.py @@ -399,7 +399,10 @@ class MockImportedBackend: } for _ in range(len(batch))] async def other_method(self, batch): - return [await request.body() for request in batch] + responses = [] + for request in batch: + responses.append(await request.body()) + return responses def compute_iterable_delta(old: Iterable,