1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-07-02 03:28:25 +08:00

Merge pull request #3619 from ipfs/fix/random-repo-test-failure

Fix/random repo test failure
This commit is contained in:
Jeromy Johnson
2017-01-21 10:46:37 -08:00
committed by GitHub

View File

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