Skip to content

Commit b5b8ed2

Browse files
committed
Self-review
1 parent 527970d commit b5b8ed2

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

distributed/cli/tests/test_dask_scheduler.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@ async def f():
3838
response = requests.get("http://127.0.0.1:8787/status/")
3939
response.raise_for_status()
4040

41-
with pytest.raises(Exception):
42-
response = requests.get("http://127.0.0.1:9786/info.json")
43-
4441

4542
def test_hostport(loop):
4643
with popen(["dask-scheduler", "--no-dashboard", "--host", "127.0.0.1:8978"]):
@@ -55,9 +52,8 @@ async def f():
5552

5653

5754
def test_no_dashboard(loop):
58-
pytest.importorskip("bokeh")
59-
with popen(["dask-scheduler", "--no-dashboard"]) as proc:
60-
with Client("127.0.0.1:%d" % Scheduler.default_port, loop=loop) as c:
55+
with popen(["dask-scheduler", "--no-dashboard"]):
56+
with Client(f"127.0.0.1:{Scheduler.default_port}", loop=loop):
6157
response = requests.get("http://127.0.0.1:8787/status/")
6258
assert response.status_code == 404
6359

0 commit comments

Comments
 (0)