@cryptotaxi247 / kubo / commits / 953f4b6ef

Sharness: fix t0084-repo-read-rehash for raw multihashes

Compare multihashes rather than CIDs.

Hector Sanjuan committed Mar 9, 2020 at 20:55 UTC 953f4b6ef0ede6c2ca9f72359c337b1769df3a2a
1 file changed +3 -2
test/sharness/t0084-repo-read-rehash.sh
+3 -2
@@ -36,8 +36,9 @@ test_check_bad_blocks() {
36 '
37
38 test_expect_success "block shows up in repo verify" '
39 - test_expect_code 1 ipfs repo verify > verify_out &&
40 - grep "$H_BLOCK2" verify_out
39 + test_expect_code 1 ipfs repo verify | cid-fmt --filter -b base32 "%M" > verify_out &&
40 + H_BLOCK2_MH=`cid-fmt -b base32 "%M" $H_BLOCK2` &&
41 + grep "$H_BLOCK2_MH" verify_out
42 '
43 }
44