dnscrypt-proxy vmtest: more specific waitForUnit

The test sometimes times out waiting for multi-user.target; this
should be more robust.

+3 -2
+3 -2
nixos/tests/dnscrypt-proxy.nix
··· 23 24 testScript = '' 25 $client->start; 26 - $client->waitForUnit("multi-user.target"); 27 28 # The daemon is socket activated; sending a single ping should activate it. 29 $client->execute("${pkgs.iputils}/bin/ping -c1 example.com"); 30 - $client->succeed("systemctl is-active dnscrypt-proxy.service"); 31 ''; 32 })
··· 23 24 testScript = '' 25 $client->start; 26 + $client->waitForUnit("sockets.target"); 27 + $client->waitForUnit("dnsmasq"); 28 29 # The daemon is socket activated; sending a single ping should activate it. 30 $client->execute("${pkgs.iputils}/bin/ping -c1 example.com"); 31 + $client->succeed("systemctl is-active dnscrypt-proxy"); 32 ''; 33 })