3
0
Fork 0
forked from mirrors/nixpkgs

dnscrypt-proxy vmtest: more specific waitForUnit

The test sometimes times out waiting for multi-user.target; this
should be more robust.
This commit is contained in:
Joachim Fasting 2016-03-24 16:41:52 +01:00
parent 1ca4610577
commit 2438c61255

View file

@ -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");
'';
})