Skip to content

Commit f28c987

Browse files
committed
nixos/tests: update nginx-http3 test
1 parent b4dee0f commit f28c987

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

nixos/tests/nginx-http3.nix

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,19 +76,19 @@ in
7676
server.wait_for_open_port(443)
7777
7878
# Check http connections
79-
client.succeed("curl --verbose --http3 https://acme.test | grep 'Hello World!'")
79+
client.succeed("curl --verbose --http3-only https://acme.test | grep 'Hello World!'")
8080
8181
# Check downloadings
82-
client.succeed("curl --verbose --http3 https://acme.test/example.txt --output /tmp/example.txt")
82+
client.succeed("curl --verbose --http3-only https://acme.test/example.txt --output /tmp/example.txt")
8383
client.succeed("cat /tmp/example.txt | grep 'Check http3 protocol.'")
8484
8585
# Check header reading
86-
client.succeed("curl --verbose --http3 --head https://acme.test | grep 'content-type'")
87-
client.succeed("curl --verbose --http3 --head https://acme.test | grep 'HTTP/3 200'")
88-
client.succeed("curl --verbose --http3 --head https://acme.test/error | grep 'HTTP/3 404'")
86+
client.succeed("curl --verbose --http3-only --head https://acme.test | grep 'content-type'")
87+
client.succeed("curl --verbose --http3-only --head https://acme.test | grep 'HTTP/3 200'")
88+
client.succeed("curl --verbose --http3-only --head https://acme.test/error | grep 'HTTP/3 404'")
8989
9090
# Check change User-Agent
91-
client.succeed("curl --verbose --http3 --user-agent 'Curl test 3.0' https://acme.test")
91+
client.succeed("curl --verbose --http3-only --user-agent 'Curl test 3.0' https://acme.test")
9292
server.succeed("cat /var/log/nginx/access.log | grep 'Curl test 3.0'")
9393
9494
server.shutdown()

0 commit comments

Comments
 (0)