Skip to content

Commit

Permalink
[serve] small test change (ray-project#48665)
Browse files Browse the repository at this point in the history
## Why are these changes needed?

Match for the more specific error that is raised, in this case
`TypeError`, instead of matching for generic `RayTaskError`.

---------

Signed-off-by: Cindy Zhang <[email protected]>
  • Loading branch information
zcin authored and JP-sDEV committed Nov 14, 2024
1 parent a594e7d commit 893b901
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/ray/serve/tests/test_batching.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import requests
from starlette.responses import StreamingResponse

import ray
from ray import serve


Expand Down Expand Up @@ -51,7 +50,7 @@ async def __call__(self, request):
# Set the max batch size.
handle = serve.run(NoListReturned.bind())

with pytest.raises(ray.exceptions.RayTaskError):
with pytest.raises(TypeError):
assert handle.remote(1).result()


Expand Down

0 comments on commit 893b901

Please sign in to comment.