aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/hpkg/test/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/hpkg/test/test.py')
-rw-r--r--cmd/hpkg/test/test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/hpkg/test/test.py b/cmd/hpkg/test/test.py
index 6f16729d..dcfe4e90 100644
--- a/cmd/hpkg/test/test.py
+++ b/cmd/hpkg/test/test.py
@@ -58,7 +58,7 @@ def check_state(name, enablements):
instances = json.loads(machine.succeed("sudo -u alice -i XDG_RUNTIME_DIR=/run/user/1000 hakurei --json ps"))
if len(instances) != 1:
raise Exception(f"unexpected state length {len(instances)}")
- instance = next(iter(instances.values()))
+ instance = instances[0]
if len(instance['container']['args']) != 1 or not (instance['container']['args'][0].startswith("/nix/store/")) or f"hakurei-{name}-" not in (instance['container']['args'][0]):
raise Exception(f"unexpected args {instance['container']['args']}")