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:
parent
1ca4610577
commit
2438c61255
@ -23,10 +23,11 @@ import ./make-test.nix ({ pkgs, ... }: {
|
|||||||
|
|
||||||
testScript = ''
|
testScript = ''
|
||||||
$client->start;
|
$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.
|
# The daemon is socket activated; sending a single ping should activate it.
|
||||||
$client->execute("${pkgs.iputils}/bin/ping -c1 example.com");
|
$client->execute("${pkgs.iputils}/bin/ping -c1 example.com");
|
||||||
$client->succeed("systemctl is-active dnscrypt-proxy.service");
|
$client->succeed("systemctl is-active dnscrypt-proxy");
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user