#!/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
$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