Skip to content

Commit 9e324df

Browse files
committed
1 parent 27c9f7e commit 9e324df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/nixos/fetchurl.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ in
7676
# Fetching from a server with an untrusted cert should fail.
7777
err = machine.fail("nix build --no-substitute --expr 'import <nix/fetchurl.nix> { url = \"https://bad/index.html\"; hash = \"sha256-rsBwZF/lPuOzdjBZN2E08FjMM3JHyXit0Xi2zN+wAZ8=\"; }' 2>&1")
7878
print(err)
79-
assert "SSL certificate problem: self-signed certificate" in err
79+
assert "SSL peer certificate or SSH remote key was not OK" in err
8080
8181
# Fetching from a server with a trusted cert should work via environment variable override.
8282
machine.succeed("NIX_SSL_CERT_FILE=/tmp/cafile.pem nix build --no-substitute --expr 'import <nix/fetchurl.nix> { url = \"https://bad/index.html\"; hash = \"sha256-rsBwZF/lPuOzdjBZN2E08FjMM3JHyXit0Xi2zN+wAZ8=\"; }'")

0 commit comments

Comments
 (0)