From 6d25aca9ed472e0d2ec212c0550ffe9ed4e9ed5e Mon Sep 17 00:00:00 2001 From: Stephen Whitmore Date: Tue, 12 Apr 2016 17:22:06 -0700 Subject: [PATCH] Adds tests to make sure 'object patch' writes. Tests to ensure that object patching writes to the block store. License: MIT Signed-off-by: Stephen Whitmore --- test/sharness/t0051-object.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/sharness/t0051-object.sh b/test/sharness/t0051-object.sh index 00bdff0e1..0506235b2 100755 --- a/test/sharness/t0051-object.sh +++ b/test/sharness/t0051-object.sh @@ -168,9 +168,16 @@ test_object_cmd() { test_cmp expected actual ' + test_expect_success "'ipfs object patch' should work (no unixfs-dir)" ' + EMPTY_DIR=$(ipfs object new) && + OUTPUT=$(ipfs object patch $EMPTY_DIR add-link foo $EMPTY_DIR) && + ipfs object stat $OUTPUT + ' + test_expect_success "'ipfs object patch' should work" ' EMPTY_DIR=$(ipfs object new unixfs-dir) && - OUTPUT=$(ipfs object patch $EMPTY_DIR add-link foo $EMPTY_DIR) + OUTPUT=$(ipfs object patch $EMPTY_DIR add-link foo $EMPTY_DIR) && + ipfs object stat $OUTPUT ' test_expect_success "multilayer ipfs patch works" '