aboutsummaryrefslogtreecommitdiff
path: root/src/libutil
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2020-06-02 16:28:54 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2020-06-02 16:28:54 +0000
commitd73dbc8e4cfe7ad92f072f9ccc30e51df9a5e97b (patch)
tree039db62922b8d62a96520a8d0a04424032a7dfac /src/libutil
parent64cffb804ade911167d71e033c5c83d9c8300651 (diff)
Remove `hashingWithUnknownAlgoExits`
A valid hash type must be provided now. The hash itself can still be invalid, but that doesn't cause an `abort()`.
Diffstat (limited to 'src/libutil')
-rw-r--r--src/libutil/tests/hash.cc5
1 files changed, 0 insertions, 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), "");
- }
}