Merge pull request #197450 from tomfitzhenry/dnscrypt-proxy2-test-listen-port

This commit is contained in:
Sandro 2022-10-27 00:51:02 +02:00 committed by GitHub
commit 7742fdb7d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,6 @@
import ./make-test-python.nix ({ pkgs, ... }: {
import ./make-test-python.nix ({ pkgs, ... }: let
localProxyPort = 43;
in {
name = "dnscrypt-proxy2";
meta = with pkgs.lib.maintainers; {
maintainers = [ joachifm ];
@ -9,7 +11,6 @@ import ./make-test-python.nix ({ pkgs, ... }: {
# for a caching DNS client.
client =
{ ... }:
let localProxyPort = 43; in
{
security.apparmor.enable = true;
@ -32,5 +33,6 @@ import ./make-test-python.nix ({ pkgs, ... }: {
testScript = ''
client.wait_for_unit("dnsmasq")
client.wait_for_unit("dnscrypt-proxy2")
client.wait_until_succeeds("ss --numeric --udp --listening | grep -q ${toString localProxyPort}")
'';
})