Skip to content

Commit

Permalink
remove routing
Browse files Browse the repository at this point in the history
Signed-off-by: Shoham Elias <[email protected]>
  • Loading branch information
shohamazon committed Aug 20, 2024
1 parent 959f450 commit 00713ad
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions python/python/tests/test_async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -8400,20 +8400,10 @@ async def test_function_kill_no_write(
request, cluster_mode=cluster_mode, protocol=protocol, timeout=15000
)

# call fcall to run the function
# make sure that fcall routes to a primary node, and not a replica
# if this happens, function_kill and function_stats won't find the function and will fail
primaryRoute = SlotKeyRoute(SlotType.PRIMARY, lib_name)

async def endless_fcall_route_call():
# fcall is supposed to be killed, and will return a RequestError
with pytest.raises(RequestError) as e:
if cluster_mode:
await test_client.fcall_ro_route(
func_name, arguments=[], route=primaryRoute
)
else:
await test_client.fcall_ro(func_name, arguments=[])
await test_client.fcall_ro(func_name, arguments=[])
assert "Script killed by user" in str(e)

async def wait_and_function_kill():
Expand Down

0 comments on commit 00713ad

Please sign in to comment.