Skip to content

Commit

Permalink
nixos/tests/mesos: wait for all services and ports
Browse files Browse the repository at this point in the history
to be available before sending requests.
Avoids non-deterministic test failure.
  • Loading branch information
xeji committed May 11, 2018
1 parent 188fdf5 commit 0d2a4ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nixos/tests/mesos.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0d2a4ed

Please sign in to comment.