ipfs / ipfs/kubo

ipfs diag cmds failure

Open
#4,795 1 comment 0 reactions 0 assignees View on GitHub
topic/test failure
Dominant language
Go
Stars
17.1k
Forks
3.2k
Avg merge
3d 18h
Merged PRs (30d)
11

Description

t0065-active-requests.sh:
```

expecting success:
ipfs diag cmds > cmd_out

ok 8 - command works

expecting success:
grep "diag/cmds" cmd_out > /dev/null

ok 9 - invoc shows up in output

expecting success:
ipfs log tail &
LOGPID=$!
go-sleep 100ms

ok 10 - start longer running command

expecting success:
ipfs diag cmds > cmd_out2

ok 11 - long running command shows up

expecting success:
grep "log/tail" cmd_out2 | grep "true" > /dev/null

not ok 12 - output looks good
#
# grep "log/tail" cmd_out2 | grep "true" > /dev/null
#

expecting success:
kill $LOGPID
go-sleep 0.5s
kill $LOGPID

wait $LOGPID || true

./t0065-active-requests.sh: 4: kill: No such process

ok 13 - kill log cmd

expecting success:
ipfs diag cmds > cmd_out3

ok 14 - long running command inactive

expecting success:
grep "log/tail" cmd_out3 | grep "false"

not ok 15 - command shows up as inactive
#
# grep "log/tail" cmd_out3 | grep "false"
#

expecting success:
kill -0 $IPFS_PID

ok 16 - 'ipfs daemon' is still running

expecting success:
test_kill_repeat_10_sec $IPFS_PID

ok 17 - 'ipfs daemon' can be killed
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.