提交 e5bc81ad 作者: Jeromy

don't select README or SHARDING file for random corruption in t0086

License: MIT
Signed-off-by: 's avatarJeromy <jeromyj@gmail.com>
上级 42cb5d4a
......@@ -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 &&
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论