summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorUli Baum <xeji@cat3.de>2018-05-20 02:24:12 +0200
committerUli Baum <xeji@cat3.de>2018-05-20 02:25:42 +0200
commit8dbd8f4d69fc8ed993f6e7798616df4c4dd96765 (patch)
tree30598f7762e4252f0fabadf5b7cc347db2cb6e73 /nixos/tests
parent8bcec815bdecdb7a6094ec538860c08b23410378 (diff)
downloadnixpkgs-8dbd8f4d69fc8ed993f6e7798616df4c4dd96765.tar
nixpkgs-8dbd8f4d69fc8ed993f6e7798616df4c4dd96765.tar.gz
nixpkgs-8dbd8f4d69fc8ed993f6e7798616df4c4dd96765.tar.bz2
nixpkgs-8dbd8f4d69fc8ed993f6e7798616df4c4dd96765.tar.lz
nixpkgs-8dbd8f4d69fc8ed993f6e7798616df4c4dd96765.tar.xz
nixpkgs-8dbd8f4d69fc8ed993f6e7798616df4c4dd96765.tar.zst
nixpkgs-8dbd8f4d69fc8ed993f6e7798616df4c4dd96765.zip
nixos/dnscrypt-proxy: fix apparmor profile and test
Test failed because of an incomplete apparmor profile.
- fix apparmor profile
- improve test timing, prevent non-deterministic failure
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/dnscrypt-proxy.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/tests/dnscrypt-proxy.nix b/nixos/tests/dnscrypt-proxy.nix
index 84562336825..1fcf3903b13 100644
--- a/nixos/tests/dnscrypt-proxy.nix
+++ b/nixos/tests/dnscrypt-proxy.nix
@@ -26,7 +26,8 @@ import ./make-test.nix ({ pkgs, ... }: {
     $client->waitForUnit("dnsmasq");
 
     # The daemon is socket activated; sending a single ping should activate it.
+    $client->fail("systemctl is-active dnscrypt-proxy");
     $client->execute("${pkgs.iputils}/bin/ping -c1 example.com");
-    $client->succeed("systemctl is-active dnscrypt-proxy");
+    $client->waitUntilSucceeds("systemctl is-active dnscrypt-proxy");
   '';
 })