Fix t0275-cid-security.sh: rename bad block file

This sharness test provides 2 datastore blocks directly.

One of them (corresponding to an "insecure block") is not a CIDv0 therefore it
needs to be migrated and stored with its raw-multihash ID.

The (raw) CID of the block used in the test remains the same.

The other block needs no changes.
This commit is contained in:
Hector Sanjuan 2020-03-09 19:32:11 +01:00 committed by Adin Schmahmann
parent 4ac3ed3ebd
commit 8cdc18ab2f
2 changed files with 2 additions and 2 deletions

View File

@ -52,8 +52,8 @@ test_cat_get() {
test_gc() {
test_expect_success "injecting insecure block" '
mkdir -p "$IPFS_PATH/blocks/JZ" &&
cp -f ../t0275-cid-security-data/AFKSEBCGPUJZE.data "$IPFS_PATH/blocks/JZ"
mkdir -p "$IPFS_PATH/blocks/TS" &&
cp -f ../t0275-cid-security-data/EICEM7ITSI.data "$IPFS_PATH/blocks/TS"
'
test_expect_success "gc works" 'ipfs repo gc > gc_out'