add small test to ensure ipfs id <self> works
License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
Jeromy committed
Oct 19, 2015 at 22:07 UTC
71288160b18abaddad1eed2729568d206fba8803
1 file changed
+10
test/sharness/t0140-swarm.sh
+10
@@ -28,6 +28,16 @@ test_expect_success 'disconnected: addrs local matches ipfs id' '
28
test_cmp expected actual
29
'
30
31
+test_expect_success "ipfs id self works" '
32
+ myid=$(ipfs id -f="<id>") &&
33
+ ipfs id --timeout=1s $myid > output
34
+'
35
+
36
+test_expect_success "output looks good" '
37
+ grep $myid output &&
38
+ grep PublicKey output
39
+'
40
+
41
test_kill_ipfs_daemon
42
43
test_done