aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/configuration.nix4
-rw-r--r--test/test.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/test/configuration.nix b/test/configuration.nix
index 39fd166c..4ac8f76a 100644
--- a/test/configuration.nix
+++ b/test/configuration.nix
@@ -84,14 +84,14 @@
virtualisation = {
# Hopefully reduces spurious test failures:
- memorySize = 4096;
+ memorySize = 8192;
qemu.options = [
# Need to switch to a different GPU driver than the default one (-vga std) so that Sway can launch:
"-vga none -device virtio-gpu-pci"
# Increase Go test compiler performance:
- "-smp 8"
+ "-smp 16"
];
};
diff --git a/test/test.py b/test/test.py
index cfc2f843..839a2b4e 100644
--- a/test/test.py
+++ b/test/test.py
@@ -56,7 +56,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]
command = f"{name}-start"
if not (instance['container']['path'].startswith("/nix/store/")) or not (instance['container']['path'].endswith(command)):