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 &&