full-setup vm test: wait for the last created agent in the meta flake
This commit is contained in:
parent
7707a257e9
commit
4a554fd6bf
1 changed files with 3 additions and 1 deletions
|
|
@ -257,9 +257,11 @@ with subtest("step 9: the first agent"):
|
|||
create_agent({"name": "iris", "hive": HIVE, "archetype": ARCHETYPE})
|
||||
|
||||
with subtest("internal/meta holds the flake the toplevels were built from"):
|
||||
# The controller commits the flake after it accepts a create, so the file can exist
|
||||
# holding only the earlier agents; wait for the last one created.
|
||||
settle(
|
||||
f"curl --fail --silent --insecure -H @{FORGE_AUTH} {FORGE}/api/v1/repos/internal/meta/raw/flake.nix "
|
||||
">/root/meta-flake.nix",
|
||||
">/root/meta-flake.nix && grep -qF 'iris = mkAgent' /root/meta-flake.nix",
|
||||
1800,
|
||||
"swarm-controller",
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue