Skip to content

Commit

Permalink
Retry seed loading in case snap is not ready yet
Browse files Browse the repository at this point in the history
  • Loading branch information
bschimke95 committed Dec 20, 2024
1 parent 71a4869 commit b269c6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/integration/tests/test_util/harness/lxd.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def new_instance(self, network_type: str = "IPv4") -> Instance:
except subprocess.CalledProcessError as e:
raise HarnessError(f"Failed to create LXD container {instance_id}") from e

self.exec(instance_id, ["snap", "wait", "system", "seed.loaded"])
stubbornly(retries=3, delay_s=5).on(instance_id).exec(["snap", "wait", "system", "seed.loaded"])
return Instance(self, instance_id)

def _configure_profile(self, profile_name: str, profile_config: str):
Expand Down

0 comments on commit b269c6a

Please sign in to comment.