From ee6c95c22e79507a71a6062965deddf4601e2c6b Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Tue, 27 Mar 2018 15:38:57 -0700 Subject: [PATCH] test listing a sharded directory with a missing block. License: MIT Signed-off-by: Steven Allen --- test/sharness/t0260-sharding.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/sharness/t0260-sharding.sh b/test/sharness/t0260-sharding.sh index 2556272e2..d7c275914 100755 --- a/test/sharness/t0260-sharding.sh +++ b/test/sharness/t0260-sharding.sh @@ -65,6 +65,18 @@ test_expect_success "ipfs cat error output the same" ' test_cmp sharded_err unsharded_err ' +test_expect_success "'ipfs ls --resolve-type=false' admits missing block" ' + ipfs ls "$SHARDED" | head -1 > first_file && + read -r HASH _ NAME missing_out && + test_cmp sharded_out missing_out +' + + test_add_large_dir_v1() { exphash="$1" test_expect_success "ipfs add (CIDv1) on very large directory succeeds" '