mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 22:32:58 +03:00
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:
parent
188fdf5bd0
commit
0d2a4ed49c
@ -66,9 +66,11 @@ import ./make-test.nix ({ pkgs, ...} : rec {
|
|||||||
testScript =
|
testScript =
|
||||||
''
|
''
|
||||||
startAll;
|
startAll;
|
||||||
|
$master->waitForUnit("zookeeper.service");
|
||||||
$master->waitForUnit("mesos-master.service");
|
$master->waitForUnit("mesos-master.service");
|
||||||
|
$slave->waitForUnit("docker.service");
|
||||||
$slave->waitForUnit("mesos-slave.service");
|
$slave->waitForUnit("mesos-slave.service");
|
||||||
|
$master->waitForOpenPort(2181);
|
||||||
$master->waitForOpenPort(5050);
|
$master->waitForOpenPort(5050);
|
||||||
$slave->waitForOpenPort(5051);
|
$slave->waitForOpenPort(5051);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user