From 2438c61255657764a928878ca7e87d18e7a587cf Mon Sep 17 00:00:00 2001 From: Joachim Fasting Date: Thu, 24 Mar 2016 16:41:52 +0100 Subject: dnscrypt-proxy vmtest: more specific waitForUnit The test sometimes times out waiting for multi-user.target; this should be more robust. --- nixos/tests/dnscrypt-proxy.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nixos/tests/dnscrypt-proxy.nix b/nixos/tests/dnscrypt-proxy.nix index 20ec3a333e77..b686e9582a7d 100644 --- a/nixos/tests/dnscrypt-proxy.nix +++ b/nixos/tests/dnscrypt-proxy.nix @@ -23,10 +23,11 @@ import ./make-test.nix ({ pkgs, ... }: { testScript = '' $client->start; - $client->waitForUnit("multi-user.target"); + $client->waitForUnit("sockets.target"); + $client->waitForUnit("dnsmasq"); # The daemon is socket activated; sending a single ping should activate it. $client->execute("${pkgs.iputils}/bin/ping -c1 example.com"); - $client->succeed("systemctl is-active dnscrypt-proxy.service"); + $client->succeed("systemctl is-active dnscrypt-proxy"); ''; }) -- cgit 1.4.1