Merge pull request #156224 from B4dM4n/nixos-tests-doh-proxy-rust

nixos/test/doh-proxy-rust: fix failing check
This commit is contained in:
Renaud 2022-02-19 16:31:14 +01:00 committed by GitHub
commit 4ccf58647a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,6 +38,6 @@ import ./make-test-python.nix ({ lib, pkgs, ... }: {
machine.wait_for_unit("doh-proxy-rust.service")
machine.wait_for_open_port(53)
machine.wait_for_open_port(3000)
machine.succeed(f"curl --fail '{url}?dns={query}' | grep -F {bin_ip}")
machine.succeed(f"curl --fail -H 'Accept: application/dns-message' '{url}?dns={query}' | grep -F {bin_ip}")
'';
})