mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 04:19:00 +02:00
tests.fetchurl: remove alias usage
(cherry picked from commit 3452cd8316
)
This commit is contained in:
parent
eb25660fc7
commit
49bbd2ba36
|
@ -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}" ];
|
||||
|
|
Loading…
Reference in a new issue