summaryrefslogtreecommitdiff
path: root/test/discovery.test
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2023-06-15 20:35:55 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2023-06-15 20:35:55 +0200
commit2130d07cbf91e016fd21a730a8449dd4bd34a093 (patch)
treef1a4ca8d3311eb3504e84c0426dd3f9780e61e88 /test/discovery.test
parentbe323e65108f4c1d57312a4d26a6a24d3a380c75 (diff)
Test: server restart
Diffstat (limited to 'test/discovery.test')
-rw-r--r--test/discovery.test20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/discovery.test b/test/discovery.test
index 152b1d9..edf68c3 100644
--- a/test/discovery.test
+++ b/test/discovery.test
@@ -23,3 +23,23 @@ test:
send "update-shared-identity OwnerB" to p1
expect /peer 1 id Device1B OwnerB/ from p2
+
+ with p2:
+ send "stop-server"
+ expect /stop-server-done/
+
+ send "update-shared-identity OwnerC" to p1
+
+ with p1:
+ send "stop-server"
+ expect /stop-server-done/
+
+ send "start-server" to p1
+ send "start-server" to p2
+
+ expect from p1:
+ /peer 1 addr ${p2.node.ip} 29665/
+ /peer 1 id Device2/
+ expect from p2:
+ /peer 1 addr ${p1.node.ip} 29665/
+ /peer 1 id Device1B OwnerC/