Skip to content

Commit a07c578

Browse files
author
alexander.prokhorov
committed
Tests fixed.
1 parent 2d82bb0 commit a07c578

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/test_concurrent.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ async def test_heavy_load(gql, sync_resolvers, requests_number, subprotocol):
9797
"""
9898

9999
# Name of GraphQL Query used in this test.
100+
query = ""
100101
if sync_resolvers == "sync":
101102
query = "fast_op_sync"
102103
elif sync_resolvers == "async":
@@ -166,6 +167,8 @@ async def test_unsubscribe_one_of_many_subscriptions(gql, sync_resolvers, subpro
166167
"""
167168

168169
# Names of GraphQL mutation and subscription used in this test.
170+
subscription = ""
171+
mutation = ""
169172
if sync_resolvers == "sync":
170173
mutation = "send_chat_message_sync"
171174
subscription = "on_chat_message_sent_sync"
@@ -273,6 +276,8 @@ async def test_subscribe_and_many_unsubscribes(
273276
"""
274277

275278
# Names of GraphQL mutation and subscription used in this test.
279+
subscription = ""
280+
mutation = ""
276281
if sync_resolvers == "sync":
277282
mutation = "send_chat_message_sync"
278283
subscription = "on_chat_message_sent_sync"
@@ -445,6 +450,7 @@ async def test_message_order_in_subscribe_unsubscribe_loop(
445450
TIME_LIMIT_SECS = 16 # pylint: disable=invalid-name
446451

447452
# Names of GraphQL mutation and subscription used in this test.
453+
subscription = ""
448454
if sync_resolvers == "sync":
449455
subscription = "on_chat_message_sent_sync"
450456
elif sync_resolvers == "async":
@@ -549,6 +555,8 @@ async def test_message_order_in_broadcast_unsubscribe_loop(
549555
NOTHING_RECEIVED_TIMEOUT = 1 # pylint: disable=invalid-name
550556

551557
# Names of GraphQL mutation and subscription used in this test.
558+
subscription = ""
559+
mutation = ""
552560
if sync_resolvers == "sync":
553561
mutation = "send_chat_message_sync"
554562
subscription = "on_chat_message_sent_sync"
@@ -709,6 +717,7 @@ async def test_message_order_in_subscribe_unsubscribe_all_loop(
709717
TIME_BORDER = 20 # pylint: disable=invalid-name
710718

711719
# Name of GraphQL subscription used in this test.
720+
subscription = ""
712721
if sync_resolvers == "sync":
713722
subscription = "on_chat_message_sent_sync"
714723
elif sync_resolvers == "async":

0 commit comments

Comments
 (0)