From 8eee1ec2a9f0925bcf9589b330faacd0255ae700 Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Sun, 9 Dec 2018 13:36:53 +0100 Subject: [PATCH] tests/slurm: wait for open DBD port This makes tests more reliable. It seems that waitForUnit(slurmdbd.service) is not sufficient on some systems. --- nixos/tests/slurm.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/tests/slurm.nix b/nixos/tests/slurm.nix index 30e408c7db1e..b4458d8d0954 100644 --- a/nixos/tests/slurm.nix +++ b/nixos/tests/slurm.nix @@ -101,6 +101,7 @@ in { subtest "can_start_slurmdbd", sub { $dbd->succeed("systemctl restart slurmdbd"); $dbd->waitForUnit("slurmdbd.service"); + $dbd->waitForOpenPort(6819); }; # there needs to be an entry for the current