commands/block: Increase mhlen in sharness
License: MIT Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
Łukasz Magiera committed
Mar 1, 2018 at 16:18 UTC
6f68eac5bc8d48f77e6bc2b57751adf38b511dc7
1 file changed
+5
-5
test/sharness/t0050-block.sh
+5
-5
@@ -185,11 +185,11 @@ test_expect_success "block get output looks right" '
185
'
186
187
test_expect_success "can set multihash type and length on block put" '
188
- HASH=$(echo "foooo" | ipfs block put --format=raw --mhtype=sha3 --mhlen=16)
188
+ HASH=$(echo "foooo" | ipfs block put --format=raw --mhtype=sha3 --mhlen=20)
189
'
190
191
test_expect_success "output looks good" '
192
- test "z25ScPysKoxJBcPxczn9NvuHiZU5" = "$HASH"
192
+ test "z83bYcqyBkbx5fuNAcvbdv4pr5RYQiEpK" = "$HASH"
193
'
194
195
test_expect_success "can read block with different hash" '
@@ -210,15 +210,15 @@ test_expect_success "no panic in output" '
210
'
211
212
test_expect_success "can set multihash type and length on block put without format" '
213
- HASH=$(echo "foooo" | ipfs block put --mhtype=sha3 --mhlen=16)
213
+ HASH=$(echo "foooo" | ipfs block put --mhtype=sha3 --mhlen=20)
214
'
215
216
test_expect_success "output looks good" '
217
- test "z2APJNN6rqZTWPpv7gYFHzh7ZEDX" = "$HASH"
217
+ test "z8bwYCvQPhyDY7VUTsUdGdE8Evm1ktSPV" = "$HASH"
218
'
219
220
test_expect_success "put with sha3 and cidv0 fails" '
221
- echo "foooo" | test_must_fail ipfs block put --mhtype=sha3 --mhlen=16 --format=v0
221
+ echo "foooo" | test_must_fail ipfs block put --mhtype=sha3 --mhlen=20 --format=v0
222
'
223
224
test_done