1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-25 23:21:54 +08:00

fix the repo verify test

We've added a new file to the flatfs datastore.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
This commit is contained in:
Steven Allen
2018-06-01 13:09:50 -07:00
parent c2c49c88c6
commit 8293e20aae

View File

@ -24,7 +24,7 @@ sort_rand() {
} }
check_random_corruption() { check_random_corruption() {
to_break=$(find "$IPFS_PATH/blocks" -type f | grep -v README | grep -v SHARDING | sort_rand | head -n 1) to_break=$(find "$IPFS_PATH/blocks" -type f -name '*.data' | sort_rand | head -n 1)
test_expect_success "back up file and overwrite it" ' test_expect_success "back up file and overwrite it" '
cp "$to_break" backup_file && cp "$to_break" backup_file &&