From a07c5787dc9cd847a5225a4ab8bb1d7bd0527c8b Mon Sep 17 00:00:00 2001 From: "alexander.prokhorov" Date: Fri, 19 Jul 2024 01:48:37 +0300 Subject: [PATCH] Tests fixed. --- tests/test_concurrent.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/test_concurrent.py b/tests/test_concurrent.py index 251bdb0..0f32f91 100644 --- a/tests/test_concurrent.py +++ b/tests/test_concurrent.py @@ -97,6 +97,7 @@ async def test_heavy_load(gql, sync_resolvers, requests_number, subprotocol): """ # Name of GraphQL Query used in this test. + query = "" if sync_resolvers == "sync": query = "fast_op_sync" elif sync_resolvers == "async": @@ -166,6 +167,8 @@ async def test_unsubscribe_one_of_many_subscriptions(gql, sync_resolvers, subpro """ # Names of GraphQL mutation and subscription used in this test. + subscription = "" + mutation = "" if sync_resolvers == "sync": mutation = "send_chat_message_sync" subscription = "on_chat_message_sent_sync" @@ -273,6 +276,8 @@ async def test_subscribe_and_many_unsubscribes( """ # Names of GraphQL mutation and subscription used in this test. + subscription = "" + mutation = "" if sync_resolvers == "sync": mutation = "send_chat_message_sync" subscription = "on_chat_message_sent_sync" @@ -445,6 +450,7 @@ async def test_message_order_in_subscribe_unsubscribe_loop( TIME_LIMIT_SECS = 16 # pylint: disable=invalid-name # Names of GraphQL mutation and subscription used in this test. + subscription = "" if sync_resolvers == "sync": subscription = "on_chat_message_sent_sync" elif sync_resolvers == "async": @@ -549,6 +555,8 @@ async def test_message_order_in_broadcast_unsubscribe_loop( NOTHING_RECEIVED_TIMEOUT = 1 # pylint: disable=invalid-name # Names of GraphQL mutation and subscription used in this test. + subscription = "" + mutation = "" if sync_resolvers == "sync": mutation = "send_chat_message_sync" subscription = "on_chat_message_sent_sync" @@ -709,6 +717,7 @@ async def test_message_order_in_subscribe_unsubscribe_all_loop( TIME_BORDER = 20 # pylint: disable=invalid-name # Name of GraphQL subscription used in this test. + subscription = "" if sync_resolvers == "sync": subscription = "on_chat_message_sent_sync" elif sync_resolvers == "async":