From 08cc8552e25a6f7fd658a2b954395fb9d1f8f375 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Mon, 17 Sep 2018 11:40:34 -0700 Subject: [PATCH] fix broken gc test `ipfs refs` won't work because we don't have the referenced objects (ipfs refs fetches everything it prints). License: MIT Signed-off-by: Steven Allen --- test/sharness/t0252-files-gc.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/sharness/t0252-files-gc.sh b/test/sharness/t0252-files-gc.sh index f5db0d33b..3666d7a48 100755 --- a/test/sharness/t0252-files-gc.sh +++ b/test/sharness/t0252-files-gc.sh @@ -38,9 +38,9 @@ test_expect_success "gc okay after adding incomplete node -- prep" ' ' test_expect_success "gc okay after adding incomplete node" ' - ipfs refs $ADIR_HASH && + ipfs object stat $ADIR_HASH && ipfs repo gc && - ipfs refs $ADIR_HASH + ipfs object stat $ADIR_HASH ' test_expect_success "add directory with direct pin" '