mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-23 19:37:46 +08:00
Merge pull request #1510 from ipfs/pinfail-debug
print output on test failure for t0081
This commit is contained in:
commit
f417cb5ceb
@ -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)
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user