Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
f1828953
Commit
f1828953
authored
May 14, 2019
by
Łukasz Magiera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
object: update sharness tests
License: MIT Signed-off-by:
Łukasz Magiera
<
magik6k@gmail.com
>
parent
d005ec42
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
test/sharness/t0051-object.sh
test/sharness/t0051-object.sh
+3
-3
No files found.
test/sharness/t0051-object.sh
View file @
f1828953
...
...
@@ -111,11 +111,11 @@ test_object_cmd() {
cat ../t0051-object-data/testPut.xml | ipfs object put --inputenc=xml > actual_putStdinOut
'
test_expect_
success
"'ipfs object put broken.xml' should fail"
'
test_expect_
failure
"'ipfs object put broken.xml' should fail"
'
test_expect_code 1 ipfs object put ../t0051-object-data/brokenPut.xml --inputenc=xml 2>actual_putBrokenErr >actual_putBroken
'
test_expect_
success
"'ipfs object put broken.hxml' output looks good"
'
test_expect_
failure
"'ipfs object put broken.hxml' output looks good"
'
touch expected_putBroken &&
printf "Error: no data or links in this node\n" > expected_putBrokenErr &&
test_cmp expected_putBroken actual_putBroken &&
...
...
@@ -170,7 +170,7 @@ test_object_cmd() {
test_expect_success
"'ipfs object put broken.hjson' output looks good"
'
touch expected_putBroken &&
printf "Error:
no data or links in this node
\n" > expected_putBrokenErr &&
printf "Error:
json: unknown field \"this\"
\n" > expected_putBrokenErr &&
test_cmp expected_putBroken actual_putBroken &&
test_cmp expected_putBrokenErr actual_putBrokenErr
'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment