Skip to content

Commit

Permalink
test: handle murmur3 rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien committed Jan 18, 2020
1 parent 5bbf20d commit cef8c3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/sharness/t0275-cid-security.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ test_description="Cid Security"
test_init_ipfs

test_expect_success "adding using unsafe function fails with error" '
echo foo | test_must_fail ipfs add --hash murmur3 2>add_out
echo foo | test_must_fail ipfs add --hash murmur3-128 2>add_out
'

test_expect_success "error reason is pointed out" '
grep "insecure hash functions not allowed" add_out
grep "insecure hash functions not allowed" add_out || test_fsh cat add_out
'

test_expect_success "adding using too short of a hash function gives out an error" '
Expand Down

0 comments on commit cef8c3c

Please sign in to comment.