From 41f3dee1767e88e497a2dbe139f5e1ffdfee04c5 Mon Sep 17 00:00:00 2001 From: Uli Baum Date: Wed, 13 Jun 2018 12:08:15 +0200 Subject: [PATCH] nixos/tests/morty: fix non-deterministic failure ... due to improper timing --- nixos/tests/morty.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/tests/morty.nix b/nixos/tests/morty.nix index e052ee988060..0a5324259ada 100644 --- a/nixos/tests/morty.nix +++ b/nixos/tests/morty.nix @@ -22,9 +22,9 @@ import ./make-test.nix ({ pkgs, ... }: testScript = { nodes , ... }: '' - startAll; + $mortyProxyWithKey->waitForUnit("default.target"); - $mortyProxyWithKey->waitForUnit("morty"); + $mortyProxyWithKey->waitForOpenPort(3001); $mortyProxyWithKey->succeed("curl -L 127.0.0.1:3001 | grep MortyProxy"); '';