Merge pull request #1510 from ipfs/pinfail-debug

print output on test failure for t0081
This commit is contained in:
Juan Benet 2015-07-27 18:41:31 -07:00
commit f417cb5ceb
2 changed files with 2 additions and 6 deletions

View File

@ -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)

View File

@ -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