mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +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 =
|
||||
''
|
||||
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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user