about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUli Baum <xeji@cat3.de>2018-05-11 19:26:35 +0200
committerUli Baum <xeji@cat3.de>2018-05-11 19:26:35 +0200
commit0d2a4ed49c81a0cda44b406d454dc58637e94c3a (patch)
tree552de9f01740cf8265c39b7f5e0e8c8f062609f9
parent188fdf5bd06de23bd289e2617bb01fb51928fdf9 (diff)
nixos/tests/mesos: wait for all services and ports
to be available before sending requests.
Avoids non-deterministic test failure.
-rw-r--r--nixos/tests/mesos.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/nixos/tests/mesos.nix b/nixos/tests/mesos.nix
index 34671df047c8c..007d7ac216039 100644
--- a/nixos/tests/mesos.nix
+++ b/nixos/tests/mesos.nix
@@ -66,9 +66,11 @@ import ./make-test.nix ({ pkgs, ...} : rec {
   testScript =
     ''
       startAll;
+      $master->waitForUnit("zookeeper.service");
       $master->waitForUnit("mesos-master.service");
+      $slave->waitForUnit("docker.service");
       $slave->waitForUnit("mesos-slave.service");
-
+      $master->waitForOpenPort(2181);
       $master->waitForOpenPort(5050);
       $slave->waitForOpenPort(5051);