def test_spec_close_clusters(loop): workers = {0: {"cls": Worker}} scheduler = {"cls": Scheduler, "options": {"port": 0}} cluster = SpecCluster(workers=workers, scheduler=scheduler, loop=loop) assert cluster in SpecCluster._instances close_clusters() assert cluster.status == "closed"
def test_spec_close_clusters(loop): workers = {0: {"cls": Worker}} cluster = SpecCluster(workers=workers, scheduler=scheduler, loop=loop) assert cluster in SpecCluster._instances close_clusters() assert cluster.status == Status.closed