From 5711eb8cd96f69add0e5dc11bdc44b1613f4125d Mon Sep 17 00:00:00 2001 From: Jeromy Date: Tue, 14 Jul 2015 13:28:22 -0700 Subject: [PATCH] better test of failure case License: MIT Signed-off-by: Jeromy --- test/sharness/t0051-object.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/test/sharness/t0051-object.sh b/test/sharness/t0051-object.sh index 6460f15d1..7ee088a5a 100755 --- a/test/sharness/t0051-object.sh +++ b/test/sharness/t0051-object.sh @@ -115,15 +115,16 @@ test_object_cmd() { ' test_expect_success "ipfs object stat path succeeds" ' - ipfs object stat $(cat multi_patch)/a/b/c > obj_stat_out + ipfs object stat $(cat multi_patch)/a > obj_stat_out ' test_expect_success "ipfs object stat output looks good" ' - echo NumLinks: 0 > obj_stat_exp && - echo BlockSize: 20 >> obj_stat_exp && - echo LinksSize: 2 >> obj_stat_exp && - echo DataSize: 18 >> obj_stat_exp && - echo CumulativeSize: 20 >> obj_stat_exp && + echo NumLinks: 1 > obj_stat_exp && + echo BlockSize: 47 >> obj_stat_exp && + echo LinksSize: 45 >> obj_stat_exp && + echo DataSize: 2 >> obj_stat_exp && + echo CumulativeSize: 114 >> obj_stat_exp && + test_cmp obj_stat_out obj_stat_exp '