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
138198e7
Commit
138198e7
authored
Jul 23, 2015
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
print output on test failure for t0081
License: MIT Signed-off-by:
Jeromy
<
jeromyj@gmail.com
>
parent
aaaf884c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
core/commands/pin.go
core/commands/pin.go
+0
-5
test/sharness/t0081-repo-pinning.sh
test/sharness/t0081-repo-pinning.sh
+2
-1
No files found.
core/commands/pin.go
View file @
138198e7
...
...
@@ -60,11 +60,6 @@ on disk.
recursive
=
false
}
go
func
()
{
<-
req
.
Context
()
.
Done
()
log
.
Error
(
"CONTEXT IS OVER!"
)
}()
added
,
err
:=
corerepo
.
Pin
(
n
,
req
.
Context
(),
req
.
Arguments
(),
recursive
)
if
err
!=
nil
{
res
.
SetError
(
err
,
cmds
.
ErrNormal
)
...
...
test/sharness/t0081-repo-pinning.sh
View file @
138198e7
...
...
@@ -243,7 +243,8 @@ test_expect_success "some are no longer there" '
test_expect_success
"recursive pin fails without objects"
'
ipfs pin rm "$HASH_DIR1" &&
test_must_fail ipfs pin add -r "$HASH_DIR1" --timeout=500ms 2>err_expected8 &&
grep "context deadline exceeded" err_expected8
grep "context deadline exceeded" err_expected8 ||
test_fsh cat err_expected8
'
# test_kill_ipfs_daemon
...
...
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