@cryptotaxi247 / kubo / commits / 1e6bf16e8

test(sharness): make repo gc test more robust

Steven Allen committed Apr 23, 2020 at 15:10 UTC 1e6bf16e833b08df09721482d400316f6d635bbf
1 file changed +2 -2
test/sharness/t0080-repo.sh
+2 -2
@@ -50,7 +50,7 @@ test_expect_success "'ipfs pin rm' output looks good" '
50 test_expect_success "ipfs repo gc fully reverse ipfs add (part 1)" '
51 ipfs repo gc &&
52 random 100000 41 >gcfile &&
53 - find "$IPFS_PATH/blocks" -type f | sort -u > expected_blocks &&
53 + find "$IPFS_PATH/blocks" -type f -name "*.data" | sort -u > expected_blocks &&
54 hash=$(ipfs add -q gcfile) &&
55 ipfs pin rm -r $hash &&
56 ipfs repo gc
@@ -59,7 +59,7 @@ test_expect_success "ipfs repo gc fully reverse ipfs add (part 1)" '
59 test_kill_ipfs_daemon
60
61 test_expect_success "ipfs repo gc fully reverse ipfs add (part 2)" '
62 - find "$IPFS_PATH/blocks" -type f | sort -u > actual_blocks &&
62 + find "$IPFS_PATH/blocks" -type f -name "*.data" | sort -u > actual_blocks &&
63 test_cmp expected_blocks actual_blocks
64 '
65