@cryptotaxi247 / kubo / commits / 6d25aca9e

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 <noffle@ipfs.io>

Stephen Whitmore committed Apr 12, 2016 at 17:22 UTC 6d25aca9ed472e0d2ec212c0550ffe9ed4e9ed5e
1 file changed +8 -1
test/sharness/t0051-object.sh
+8 -1
@@ -168,9 +168,16 @@ test_object_cmd() {
168 test_cmp expected actual
169 '
170
171 + test_expect_success "'ipfs object patch' should work (no unixfs-dir)" '
172 + EMPTY_DIR=$(ipfs object new) &&
173 + OUTPUT=$(ipfs object patch $EMPTY_DIR add-link foo $EMPTY_DIR) &&
174 + ipfs object stat $OUTPUT
175 + '
176 +
177 test_expect_success "'ipfs object patch' should work" '
178 EMPTY_DIR=$(ipfs object new unixfs-dir) &&
173 - OUTPUT=$(ipfs object patch $EMPTY_DIR add-link foo $EMPTY_DIR)
179 + OUTPUT=$(ipfs object patch $EMPTY_DIR add-link foo $EMPTY_DIR) &&
180 + ipfs object stat $OUTPUT
181 '
182
183 test_expect_success "multilayer ipfs patch works" '