From d73dbc8e4cfe7ad92f072f9ccc30e51df9a5e97b Mon Sep 17 00:00:00 2001 From: John Ericson Date: Tue, 2 Jun 2020 16:28:54 +0000 Subject: [PATCH] Remove `hashingWithUnknownAlgoExits` A valid hash type must be provided now. The hash itself can still be invalid, but that doesn't cause an `abort()`. --- src/libutil/tests/hash.cc | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/libutil/tests/hash.cc b/src/libutil/tests/hash.cc index 5fd168be5..ecc0d4a03 100644 --- a/src/libutil/tests/hash.cc +++ b/src/libutil/tests/hash.cc @@ -72,9 +72,4 @@ namespace nix { "7299aeadb6889018501d289e4900f7e4331b99dec4b5433a" "c7d329eeb6dd26545e96e55b874be909"); } - - TEST(hashString, hashingWithUnknownAlgoExits) { - auto s = "unknown"; - ASSERT_DEATH(hashString(HashType::SHA512, s), ""); - } }