Skip to content
Closed
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
4 changes: 2 additions & 2 deletions distributed/tests/test_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ async def test_worker_port_range(s):


@pytest.mark.slow

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would expect this test run very fast, assuming the timeout in wait_for is reduced. At least after the report is turned off.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It tests that the worker waits for at least three seconds. I though about removing it but I think that it genuinely adds signal.

@gen_test(timeout=60)
@gen_test()
async def test_worker_waits_for_scheduler():
w = Worker("127.0.0.1:8724")
try:
Expand All @@ -321,7 +321,7 @@ async def test_worker_waits_for_scheduler():
else:
assert False
assert w.status not in (Status.closed, Status.running, Status.paused)
await w.close(timeout=0.1)
await w.close(report=False)


@gen_cluster(client=True, nthreads=[("127.0.0.1", 1)])
Expand Down