print output on test failure for t0081
License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
Jeromy committed
Jul 23, 2015 at 08:35 UTC
138198e78655be82433ad09bf5d7bcbc78989809
2 files changed
+2
-6
core/commands/pin.go
-5
@@ -60,11 +60,6 @@ on disk.
60
recursive = false
61
}
62
63
- go func() {
64
- <-req.Context().Done()
65
- log.Error("CONTEXT IS OVER!")
66
- }()
67
-
63
added, err := corerepo.Pin(n, req.Context(), req.Arguments(), recursive)
64
if err != nil {
65
res.SetError(err, cmds.ErrNormal)
test/sharness/t0081-repo-pinning.sh
+2
-1
@@ -243,7 +243,8 @@ test_expect_success "some are no longer there" '
243
test_expect_success "recursive pin fails without objects" '
244
ipfs pin rm "$HASH_DIR1" &&
245
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
248
'
249
250
# test_kill_ipfs_daemon