Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(pytest): Fix renamed flag #2197

Merged
merged 1 commit into from
Nov 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tests/dragonfly/connection_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def generate(max):

@pytest.mark.asyncio
@pytest.mark.slow
@dfly_args({"proactor_threads": "1", "pipeline_queue_limit": "100"})
@dfly_args({"proactor_threads": "1", "subscriber_thread_limit": "100"})
async def test_publish_stuck(df_server: DflyInstance, async_client: aioredis.Redis):
reader, writer = await asyncio.open_connection("127.0.0.1", df_server.port, limit=10)
writer.write(b"SUBSCRIBE channel\r\n")
Expand All @@ -313,13 +313,13 @@ async def pub_task():
await asyncio.sleep(5)

# Check we reached the limit
pub_bytes = int((await async_client.info())["dispatch_queue_pub_bytes"])
pub_bytes = int((await async_client.info())["dispatch_queue_subscriber_bytes"])
assert pub_bytes >= 100

await asyncio.sleep(0.1)

# Make sure processing is stalled
new_pub_bytes = int((await async_client.info())["dispatch_queue_pub_bytes"])
new_pub_bytes = int((await async_client.info())["dispatch_queue_subscriber_bytes"])
assert new_pub_bytes == pub_bytes

writer.write(b"QUIT\r\n")
Expand Down
Loading