Skip to content
Snippets Groups Projects
Commit 2f2277c3 authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

run-introducer waits for the port

parent d7d1847f
No related branches found
No related tags found
1 merge request!10End-to-end with ristretto
......@@ -92,9 +92,13 @@ import <nixpkgs/nixos/tests/make-test.nix> {
'${pemFile}',
'/tmp/node.pem'
);
$introducer->succeed('set -eo pipefail; ${run-introducer} /tmp/node.pem ${toString introducerPort} ${introducerFURL} | systemd-cat');
eval {
$introducer->waitForOpenPort(${toString introducerPort});
$introducer->succeed(
'set -eo pipefail; ' .
'${run-introducer} /tmp/node.pem ${toString introducerPort} ${introducerFURL} | ' .
systemd-cat'
);
# Signal success. :/
1;
} or do {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment