tests.installer: rely on swap.target in tests

fixes #5258

+2 -2
+2 -2
nixos/tests/installer.nix
··· 115 115 116 116 # Did the swap device get activated? 117 117 # uncomment once https://bugs.freedesktop.org/show_bug.cgi?id=86930 is resolved 118 - #$machine->waitForUnit("swap.target"); 119 - $machine->waitUntilSucceeds("cat /proc/swaps | grep -q /dev"); 118 + $machine->waitForUnit("swap.target"); 119 + $machine->succeed("cat /proc/swaps | grep -q /dev"); 120 120 121 121 # Check whether the channel works. 122 122 $machine->succeed("nix-env -iA nixos.procps >&2");