Skip to content

Commit

Permalink
Tests fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander.prokhorov committed Jul 18, 2024
1 parent 2d82bb0 commit a07c578
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_concurrent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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":
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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":
Expand Down

0 comments on commit a07c578

Please sign in to comment.