Commit 71288160 authored by Jeromy's avatar Jeromy

add small test to ensure ipfs id <self> works

License: MIT
Signed-off-by: default avatarJeromy <jeromyj@gmail.com>
parent cac6b376
...@@ -28,6 +28,16 @@ test_expect_success 'disconnected: addrs local matches ipfs id' ' ...@@ -28,6 +28,16 @@ test_expect_success 'disconnected: addrs local matches ipfs id' '
test_cmp expected actual test_cmp expected actual
' '
test_expect_success "ipfs id self works" '
myid=$(ipfs id -f="<id>") &&
ipfs id --timeout=1s $myid > output
'
test_expect_success "output looks good" '
grep $myid output &&
grep PublicKey output
'
test_kill_ipfs_daemon test_kill_ipfs_daemon
test_done test_done
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment