From 4c94ffdb20b4c416926e4af17b823e4eaa3a9582 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Thu, 15 Jun 2023 20:35:55 +0200 Subject: (test) Test: server restart --- discovery.test | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'discovery.test') diff --git a/discovery.test b/discovery.test index 152b1d9..edf68c3 100644 --- a/discovery.test +++ b/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/ -- cgit v1.2.3