Skip to content

Commit

Permalink
fix tests again
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinzwang committed Oct 17, 2024
1 parent ded9d6f commit 5026714
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/actor_pool/test_pyactor_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ def test_pyactor_pool_not_enough_resources():
runner = get_context().runner()
assert isinstance(runner, PyRunner)

original_resources = deepcopy(runner._available_resources)
original_resources = deepcopy(runner._available_resources.resources)

with pytest.raises(RuntimeError, match=f"Not enough resources available to admit {cpu_count + 1} actors"):
with runner.actor_pool_context(
"my-pool", ResourceRequest(num_cpus=1), ResourceRequest(), cpu_count + 1, projection
) as _:
pass

assert runner._available_resources == original_resources
assert runner._available_resources.resources == original_resources

0 comments on commit 5026714

Please sign in to comment.