@cryptotaxi247 / kubo / commits / 603ecf62e

add sharness test for deprecated supernode option

License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>

Steven Allen committed Oct 16, 2017 at 09:27 UTC 603ecf62e36a9ad7a5613229d02d06e253a70637
1 file changed +9
test/sharness/t0061-daemon-opts.sh
+9
@@ -49,4 +49,13 @@ test_expect_success 'output contains info about dht option' '
49 test_fsh cat daemon_output
50 '
51
52 +test_expect_success 'daemon should not start with supernode dht opt' '
53 + test_must_fail ipfs daemon --routing=supernode > daemon_output2 2>&1
54 +'
55 +
56 +test_expect_success 'output contains info about supernode dht option' '
57 + grep "supernode routing was never fully implemented" daemon_output2 ||
58 + test_fsh cat daemon_output2
59 +'
60 +
61 test_done