t5318: update for SHA-256
When running with SHA-256 as the hash algorithm, the hash version octet is 2 instead of 1. Pick the right value depending on the hash algorithm and use it where we look for the existing value. To ensure the test checking for invalid data passes, use 3 as the test value for an invalid hash version. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
525a7f1769
commit
1d86c8f0ce
@ -481,7 +481,7 @@ test_expect_success 'detect bad version' '
|
||||
'
|
||||
|
||||
test_expect_success 'detect bad hash version' '
|
||||
corrupt_graph_and_verify $GRAPH_BYTE_HASH "\02" \
|
||||
corrupt_graph_and_verify $GRAPH_BYTE_HASH "\03" \
|
||||
"hash version"
|
||||
'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user