()
| 29 | |
| 30 | |
| 31 | def test_cluster_add_worker(): |
| 32 | with LocalCluster() as cluster: |
| 33 | cluster.start_worker() |
| 34 | client = cluster.client() |
| 35 | job = Job() |
| 36 | job.program(["echo", "hello"], stdout="out.txt") |
| 37 | job_id = client.submit(job) |
| 38 | client.wait_for_jobs([job_id]) |
| 39 | |
| 40 | check_file_contents("out.txt", "hello\n") |
| 41 | |
| 42 | |
| 43 | def test_cluster_worker_cores(): |
nothing calls this directly
no test coverage detected