Commit 49bbd2ba authored by Artturin's avatar Artturin Committed by github-actions[bot]
Browse files

tests.fetchurl: remove alias usage

(cherry picked from commit 3452cd83)
parent eb25660f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
{ 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}" ];