mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-09 18:28:08 +08:00
Merge pull request #3584 from ipfs/test/daemon/invalid-routing
test: add test for invalid routing option
This commit is contained in:
commit
f46cdb67c1
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user