From 6f68eac5bc8d48f77e6bc2b57751adf38b511dc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Thu, 1 Mar 2018 16:18:53 +0100 Subject: [PATCH] commands/block: Increase mhlen in sharness MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit License: MIT Signed-off-by: Ɓukasz Magiera --- test/sharness/t0050-block.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/sharness/t0050-block.sh b/test/sharness/t0050-block.sh index 0cdd2498b..054b54910 100755 --- a/test/sharness/t0050-block.sh +++ b/test/sharness/t0050-block.sh @@ -185,11 +185,11 @@ test_expect_success "block get output looks right" ' ' test_expect_success "can set multihash type and length on block put" ' - HASH=$(echo "foooo" | ipfs block put --format=raw --mhtype=sha3 --mhlen=16) + HASH=$(echo "foooo" | ipfs block put --format=raw --mhtype=sha3 --mhlen=20) ' test_expect_success "output looks good" ' - test "z25ScPysKoxJBcPxczn9NvuHiZU5" = "$HASH" + test "z83bYcqyBkbx5fuNAcvbdv4pr5RYQiEpK" = "$HASH" ' test_expect_success "can read block with different hash" ' @@ -210,15 +210,15 @@ test_expect_success "no panic in output" ' ' test_expect_success "can set multihash type and length on block put without format" ' - HASH=$(echo "foooo" | ipfs block put --mhtype=sha3 --mhlen=16) + HASH=$(echo "foooo" | ipfs block put --mhtype=sha3 --mhlen=20) ' test_expect_success "output looks good" ' - test "z2APJNN6rqZTWPpv7gYFHzh7ZEDX" = "$HASH" + test "z8bwYCvQPhyDY7VUTsUdGdE8Evm1ktSPV" = "$HASH" ' test_expect_success "put with sha3 and cidv0 fails" ' - echo "foooo" | test_must_fail ipfs block put --mhtype=sha3 --mhlen=16 --format=v0 + echo "foooo" | test_must_fail ipfs block put --mhtype=sha3 --mhlen=20 --format=v0 ' test_done