From 00713ad90f908f445c4b9f1e374e943d46a6f706 Mon Sep 17 00:00:00 2001 From: Shoham Elias Date: Thu, 15 Aug 2024 15:10:36 +0000 Subject: [PATCH] remove routing Signed-off-by: Shoham Elias --- python/python/tests/test_async_client.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/python/python/tests/test_async_client.py b/python/python/tests/test_async_client.py index fb397afb72..c9cf188631 100644 --- a/python/python/tests/test_async_client.py +++ b/python/python/tests/test_async_client.py @@ -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():