|
35 | 35 |
|
36 | 36 | W_gen_mgr = np.array( |
37 | 37 | [ |
38 | | - (0, True, 0, 0, False, False), |
39 | | - (1, False, 0, 0, False, False), |
40 | | - (2, False, 0, 0, False, False), |
41 | | - (3, False, 0, 0, False, False), |
42 | | - (4, False, 0, 0, False, False), |
| 38 | + (0, True, 0, 0, False), |
| 39 | + (1, False, 0, 0, False), |
| 40 | + (2, False, 0, 0, False), |
| 41 | + (3, False, 0, 0, False), |
| 42 | + (4, False, 0, 0, False), |
43 | 43 | ], |
44 | 44 | dtype=[ |
45 | 45 | ("worker_id", "<i8"), |
46 | 46 | ("gen_worker", "?"), |
47 | 47 | ("active", "<i8"), |
48 | 48 | ("persis_state", "<i8"), |
49 | 49 | ("active_recv", "?"), |
50 | | - ("zero_resource_worker", "?"), |
51 | 50 | ], |
52 | 51 | ) |
53 | 52 |
|
@@ -173,13 +172,6 @@ def test_als_worker_ids_with_gen_mgr(): |
173 | 172 | flag = 0 |
174 | 173 | assert flag == 0, "AllocSupport didn't error on invalid options for avail_worker_ids()" |
175 | 174 |
|
176 | | - W_zrw = W_gen_mgr.copy() |
177 | | - W_zrw["zero_resource_worker"] = np.array([True, 0, 0, 0, 0]) |
178 | | - als = AllocSupport(W_zrw, True) |
179 | | - assert als.avail_worker_ids(zero_resource_workers=True) == [ |
180 | | - 0 |
181 | | - ], "avail_worker_ids() didn't return expected zero resource worker list." |
182 | | - |
183 | 175 |
|
184 | 176 | def test_als_evaluate_gens(): |
185 | 177 | W_gens = W.copy() |
|
0 commit comments