add a test for swarm connect not triggering a backoff
License: MIT Signed-off-by: Jeromy <why@ipfs.io>
Jeromy committed
Jul 5, 2016 at 14:44 UTC
8c2496c9d9a64a0540213f5308c89500fda75cf0
1 file changed
+9
test/sharness/t0140-swarm.sh
+9
@@ -38,6 +38,15 @@ test_expect_success "output looks good" '
38
grep PublicKey output
39
'
40
41
+addr="/ip4/127.0.0.1/tcp/9898/ipfs/QmUWKoHbjsqsSMesRC2Zoscs8edyFz6F77auBB1YBBhgpX"
42
+
43
+test_expect_success "cant trigger a dial backoff with swarm connect" '
44
+ test_expect_code 1 ipfs swarm connect $addr 2> connect_out
45
+ test_expect_code 1 ipfs swarm connect $addr 2>> connect_out
46
+ test_expect_code 1 ipfs swarm connect $addr 2>> connect_out
47
+ test_expect_code 1 grep "backoff" connect_out
48
+'
49
+
50
test_kill_ipfs_daemon
51
52
test_done