nixos/tests/mesos: wait for all services and ports

to be available before sending requests.
Avoids non-deterministic test failure.
This commit is contained in:
Uli Baum 2018-05-11 19:26:35 +02:00
parent 188fdf5bd0
commit 0d2a4ed49c

View File

@ -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);