test: add test for invalid routing option

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
This commit is contained in:
Jakub Sztandera 2017-01-10 17:22:23 +01:00
parent 58975c32ce
commit df67f3d1bd
No known key found for this signature in database
GPG Key ID: 9A9AF56F8B3879BA

View File

@ -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