projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test/legacy-protocol.test: fix intermittent "Cannot read greeting from control socket"
[tinc]
/
test
/
legacy-protocol.test
diff --git
a/test/legacy-protocol.test
b/test/legacy-protocol.test
index
ce8e614
..
5205877
100755
(executable)
--- a/
test/legacy-protocol.test
+++ b/
test/legacy-protocol.test
@@
-1,5
+1,10
@@
#!/bin/sh
#!/bin/sh
+# Skip this test if the legacy protocol is disabled
+if grep -q "define DISABLE_LEGACY 1" "${0%/*}/../config.h"; then
+ exit 77
+fi
+
. "${0%/*}/testlib.sh"
# Initialize two nodes
. "${0%/*}/testlib.sh"
# Initialize two nodes
@@
-70,7
+75,7
@@
$tinc $c2 set ExperimentalProtocol no
$tinc $c1 start $r1
$tinc $c2 start $r2
$tinc $c1 start $r1
$tinc $c2 start $r2
-sleep
1
+sleep
5
test `$tinc $c1 dump reachable nodes | wc -l` = 1
test `$tinc $c2 dump reachable nodes | wc -l` = 1
test `$tinc $c1 dump reachable nodes | wc -l` = 1
test `$tinc $c2 dump reachable nodes | wc -l` = 1