mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 18:37:45 +08:00
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:
parent
4ac3ed3ebd
commit
8cdc18ab2f
@ -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'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user