Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 7c91e63

Browse files
committedJul 23, 2015
print output on test failure for t0081
License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
1 parent 8c0ca5e commit 7c91e63

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed
 

‎core/commands/pin.go

-5
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,6 @@ on disk.
6060
recursive = false
6161
}
6262

63-
go func() {
64-
<-req.Context().Done()
65-
log.Error("CONTEXT IS OVER!")
66-
}()
67-
6863
added, err := corerepo.Pin(n, req.Context(), req.Arguments(), recursive)
6964
if err != nil {
7065
res.SetError(err, cmds.ErrNormal)

‎test/sharness/t0081-repo-pinning.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,8 @@ test_expect_success "some are no longer there" '
243243
test_expect_success "recursive pin fails without objects" '
244244
ipfs pin rm "$HASH_DIR1" &&
245245
test_must_fail ipfs pin add -r "$HASH_DIR1" --timeout=500ms 2>err_expected8 &&
246-
grep "context deadline exceeded" err_expected8
246+
grep "context deadline exceeded" err_expected8 ||
247+
test_fsh cat err_expected8
247248
'
248249

249250
# test_kill_ipfs_daemon

0 commit comments

Comments
 (0)
Please sign in to comment.