@cryptotaxi247 / kubo / commits / 0dc984290

test ipfs get on sharded directory

License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>

Steven Allen committed Mar 23, 2018 at 16:24 UTC 0dc984290cb2f839f94254f4c3adb7818c85e4be
1 file changed +5 -1
test/sharness/t0260-sharding.sh renamed
+5 -1
@@ -4,7 +4,7 @@
4 # MIT Licensed; see the LICENSE file in this repository.
5 #
6
7 -test_description="Test global enable sharding flag"
7 +test_description="Test directory sharding"
8
9 . lib/test-lib.sh
10
@@ -23,6 +23,10 @@ test_add_large_dir() {
23 echo "$exphash" > sharddir_exp &&
24 test_cmp sharddir_exp sharddir_out
25 '
26 + test_expect_success "ipfs get on very large directory succeeds" '
27 + ipfs get -o testdata-out "$exphash" &&
28 + test_cmp testdata testdata-out
29 + '
30 }
31
32 test_init_ipfs