Skip to content

Commit 936ded7

Browse files
Hugo-Inmantainmantaci
authored andcommitted
Fix flaky test_deploy test. (PR #9684)
# Description Follow up to #9673 # Self Check: Strike through any lines that are not applicable (`~~line~~`) then check the box - [ ] Attached issue to pull request - [ ] Changelog entry - [ ] Type annotations are present - [ ] Code is clear and sufficiently documented - [ ] No (preventable) type errors (check using make mypy or make mypy-diff) - [ ] Sufficient test cases (reproduces the bug/tests the requested feature) - [ ] Correct, in line with design - [ ] End user documentation is included or an issue is created for end-user documentation (add ref to issue here: ) - [ ] If this PR fixes a race condition in the test suite, also push the fix to the relevant stable branche(s) (see [test-fixes](https://internal.inmanta.com/development/core/tasks/build-master.html#test-fixes) for more info)
1 parent 45b58ef commit 936ded7

File tree

2 files changed

+4
-0
lines changed

2 files changed

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

tests/deploy/e2e/test_deploy.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1468,6 +1468,7 @@ async def assert_states(expected_states: dict[ResourceIdStr, ReleasedResourceSta
14681468
wait_for_deploy=False,
14691469
)
14701470
await agent.scheduler.start()
1471+
await wait_until_deployment_finishes(client, env_id, version=version)
14711472
await assert_states(
14721473
{
14731474
ResourceIdStr("test::Resource[agent1,key=key1]"): ReleasedResourceState.deployed,

0 commit comments

Comments
 (0)