Unverified Commit 5238267d authored by Robert Hensing's avatar Robert Hensing Committed by GitHub
Browse files

tests.fetchtorrent: avoid builtins.convertHash (#460994)

parents d7827d1d 081f2178
Loading
Loading
Loading
Loading
+1 −11
Original line number Diff line number Diff line
@@ -62,17 +62,7 @@ let
  # Fixed output derivation hash is identical for all derivations: the empty
  # directory.
  fetchtorrentWithHash =
    args:
    fetchtorrent (
      {
        hash = builtins.convertHash {
          hash = emptyDirectory.outputHash;
          toHashFormat = "sri";
          hashAlgo = emptyDirectory.outputHashAlgo;
        };
      }
      // args
    );
    args: fetchtorrent ({ hash = "sha256-pQpattmS9VmO3ZIQUFn66az8GSmB4IvYhTTCFn6SUmo="; } // args);
in
# Seems almost but not quite worth using lib.mapCartesianProduct...
builtins.mapAttrs (n: v: testers.invalidateFetcherByDrvHash fetchtorrentWithHash v) {