From 5d30b4f34a6ffbf986b0640cdd09f0ac15bc4351 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Thu, 7 Dec 2017 21:34:01 +0100 Subject: [PATCH] object-patch: test resolving ipld objects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit License: MIT Signed-off-by: Ɓukasz Magiera --- 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 244dcc831..9678fc2d1 100755 --- a/test/sharness/t0051-object.sh +++ b/test/sharness/t0051-object.sh @@ -220,9 +220,16 @@ test_object_cmd() { EMPTY_DIR=$(ipfs object new unixfs-dir) && OBJ=$(echo "123" | ipfs dag put) && N1=$(ipfs object patch $EMPTY_DIR add-link foo $OBJ) && - ipfs object stat $N1 > /dev/null + + ipfs object stat /ipfs/$N1 > /dev/null && + ipfs resolve /ipfs/$N1/foo > actual && + echo /ipfs/$OBJ > expected && + + test_cmp expected actual ' + + test_expect_success "object patch creation looks right" ' echo "QmPc73aWK9dgFBXe86P4PvQizHo9e5Qt7n7DAMXWuigFuG" > hash_exp && echo $N3 > hash_actual &&