Skip to content

Commit 5711eb8

Browse files
committedJul 14, 2015
better test of failure case
License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
1 parent 4cce6f8 commit 5711eb8

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed
 

‎test/sharness/t0051-object.sh

+7-6
Original file line numberDiff line numberDiff line change
@@ -115,15 +115,16 @@ test_object_cmd() {
115115
'
116116

117117
test_expect_success "ipfs object stat path succeeds" '
118-
ipfs object stat $(cat multi_patch)/a/b/c > obj_stat_out
118+
ipfs object stat $(cat multi_patch)/a > obj_stat_out
119119
'
120120

121121
test_expect_success "ipfs object stat output looks good" '
122-
echo NumLinks: 0 > obj_stat_exp &&
123-
echo BlockSize: 20 >> obj_stat_exp &&
124-
echo LinksSize: 2 >> obj_stat_exp &&
125-
echo DataSize: 18 >> obj_stat_exp &&
126-
echo CumulativeSize: 20 >> obj_stat_exp &&
122+
echo NumLinks: 1 > obj_stat_exp &&
123+
echo BlockSize: 47 >> obj_stat_exp &&
124+
echo LinksSize: 45 >> obj_stat_exp &&
125+
echo DataSize: 2 >> obj_stat_exp &&
126+
echo CumulativeSize: 114 >> obj_stat_exp &&
127+
127128
test_cmp obj_stat_out obj_stat_exp
128129
'
129130

0 commit comments

Comments
 (0)
Please sign in to comment.