tests.fetchurl: remove alias usage

This commit is contained in:
Artturin 2022-11-16 21:52:37 +02:00
parent cb8f2dd69c
commit 3452cd8316

View File

@ -1,8 +1,8 @@
{ invalidateFetcherByDrvHash, fetchurl, jq, moreutils, ... }: {
{ testers, fetchurl, jq, moreutils, ... }: {
# Tests that we can send custom headers with spaces in them
header =
let headerValue = "Test '\" <- These are some quotes";
in invalidateFetcherByDrvHash fetchurl {
in testers.invalidateFetcherByDrvHash fetchurl {
url = "https://httpbin.org/headers";
sha256 = builtins.hashString "sha256" (headerValue + "\n");
curlOptsList = [ "-H" "Hello: ${headerValue}" ];