Skip to content

Commit 6b8a4b0

Browse files
arnaudsjsinmantaci
authored andcommitted
Fix bug in test_executor_creation_and_venv_usage test case. (PR #9021)
Pull request opened by the merge tool on behalf of #9021
1 parent 6a27340 commit 6b8a4b0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
description: "Fix bug in test_executor_creation_and_venv_usage test case."
3+
change-type: patch
4+
destination-branches: [master, iso8]

tests/forking_agent/test_agent_executor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ async def stop_executor_and_wait_for_executor_server_to_stop(
442442
assert all(not e.running for e in executors)
443443

444444
def did_executor_server_stop() -> bool:
445-
return executor_blueprint in mpmanager_light.process_pool.pool
445+
return executor_blueprint not in mpmanager_light.process_pool.pool
446446

447447
# Also wait until the executor server has stopped, because that one refreshes the .inmanta_venv_status file.
448448
await retry_limited(did_executor_server_stop, timeout=10)

0 commit comments

Comments
 (0)