object: update sharness tests
License: MIT Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
Łukasz Magiera committed
May 14, 2019 at 23:42 UTC
f18289531da2d7766c3fa4cc52ec090d3b44d12b
1 file changed
+3
-3
test/sharness/t0051-object.sh
+3
-3
@@ -111,11 +111,11 @@ test_object_cmd() {
111
cat ../t0051-object-data/testPut.xml | ipfs object put --inputenc=xml > actual_putStdinOut
112
'
113
114
- test_expect_success "'ipfs object put broken.xml' should fail" '
114
+ test_expect_failure "'ipfs object put broken.xml' should fail" '
115
test_expect_code 1 ipfs object put ../t0051-object-data/brokenPut.xml --inputenc=xml 2>actual_putBrokenErr >actual_putBroken
116
'
117
118
- test_expect_success "'ipfs object put broken.hxml' output looks good" '
118
+ test_expect_failure "'ipfs object put broken.hxml' output looks good" '
119
touch expected_putBroken &&
120
printf "Error: no data or links in this node\n" > expected_putBrokenErr &&
121
test_cmp expected_putBroken actual_putBroken &&
@@ -170,7 +170,7 @@ test_object_cmd() {
170
171
test_expect_success "'ipfs object put broken.hjson' output looks good" '
172
touch expected_putBroken &&
173
- printf "Error: no data or links in this node\n" > expected_putBrokenErr &&
173
+ printf "Error: json: unknown field \"this\"\n" > expected_putBrokenErr &&
174
test_cmp expected_putBroken actual_putBroken &&
175
test_cmp expected_putBrokenErr actual_putBrokenErr
176
'