test: add test for invalid routing option
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
Jakub Sztandera committed
Jan 10, 2017 at 17:22 UTC
df67f3d1bd308aa2f98e1b415520d2d024fdbc36
1 file changed
+10
test/sharness/t0061-daemon-opts.sh
+10
@@ -39,4 +39,14 @@ test_expect_success 'gateway should work in offline mode' '
39
'
40
41
test_kill_ipfs_daemon
42
+
43
+test_expect_success 'daemon should not start with bad dht opt' '
44
+ test_must_fail ipfs daemon --routing=fdsfdsfds > daemon_output 2>&1
45
+'
46
+
47
+test_expect_success 'output contains info about dht option' '
48
+ grep "unrecognized routing option:" daemon_output ||
49
+ test_fsh cat daemon_output
50
+'
51
+
52
test_done