summaryrefslogtreecommitdiff
path: root/test/discovery.et
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2026-08-25 19:29:01 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2026-08-25 20:15:42 +0200
commit6cede13cdadb3e9085cffaae0442d4b9503312ac (patch)
tree1c2e80f815b16e1eec6e8cfa1b2981da577e6b6b /test/discovery.et
parent9693daf7916ec3e9a3a5df032e7ff2e89c738efb (diff)
Test: wait for server start before adding peers
Diffstat (limited to 'test/discovery.et')
-rw-r--r--test/discovery.et10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/discovery.et b/test/discovery.et
index 9f2f06f..b8d5c81 100644
--- a/test/discovery.et
+++ b/test/discovery.et
@@ -31,6 +31,7 @@ test ManualDiscovery:
for id in [ p1obase, p1base ]:
for p in [ pd, p1, p2 ]:
send "start-server services $services" to p
+ expect from pd /start-server-done/
for p in [ p1, p2 ]:
with p:
@@ -60,6 +61,7 @@ test ManualDiscovery:
for id in [ p1obase ]:
for p in [ pd, p1, p2 ]:
send "start-server services $services" to p
+ expect from pd /start-server-done/
with p1:
send "peer-add ${pd.node.ip}"
@@ -120,6 +122,7 @@ test DiscoveryJoinedAfter:
for id in [ p1obase ]:
for p in [ pd, p1, p2 ]:
send "start-server services $services" to p
+ expect from pd /start-server-done/
for p in [ p2 ]:
with p:
@@ -189,6 +192,7 @@ test DiscoveryTunnel:
for id in [ p1obase ]:
for p in [ pd, p1, p2 ]:
send "start-server services $services test-log" to p
+ expect from pd /start-server-done/
for p in [ p1, p2 ]:
with p:
@@ -264,6 +268,8 @@ test DiscoveryTunnelWithChangedAddresses:
for p in [ p1, p2 ]:
send "start-server services $services test-log" to p
+ expect from pd /start-server-done/
+
for p in [ p1, p2 ]:
with p:
send "peer-add ${pd.node.ip}"
@@ -347,6 +353,7 @@ test DiscoveryTunnelRefused:
for id in [ p1obase ]:
for p in [ pd, p1, p2 ]:
send "start-server services $services test-log" to p
+ expect from pd /start-server-done/
for p in [ p1, p2 ]:
with p:
@@ -411,6 +418,8 @@ test CommonOwnerDiscovery:
for p in [ p1, p2, p3 ]:
send "start-server services attach" to p
+ for p in [ p1, p2, p3 ]:
+ expect /start-server-done/ from p
for p in [ p2, p3 ]:
send "watch-local-identity" to p
send "peer-add ${p1.node.ip} 29665" to p
@@ -444,6 +453,7 @@ test CommonOwnerDiscovery:
for p in [ pd, p1, p2, p3 ]:
send "start-server services $services" to p
+ expect from pd /start-server-done/
send "peer-add ${pd.node.ip}" to p1
expect from pd /discovery-packet ${p1.node.ip} 29665 search $owner/