test: add test for invalid routing option

License: MIT
Signed-off-by: default avatarJakub Sztandera <kubuxu@protonmail.ch>
parent 58975c32
......@@ -39,4 +39,14 @@ test_expect_success 'gateway should work in offline mode' '
'
test_kill_ipfs_daemon
test_expect_success 'daemon should not start with bad dht opt' '
test_must_fail ipfs daemon --routing=fdsfdsfds > daemon_output 2>&1
'
test_expect_success 'output contains info about dht option' '
grep "unrecognized routing option:" daemon_output ||
test_fsh cat daemon_output
'
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