summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2022-06-04 22:24:15 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2022-06-04 22:24:15 +0200
commit5e63d0a516de660ed215b0f8ebe8d3e5d697f19e (patch)
treee33ca68d74681d900a2bc1940dcf8a1e4196ddc1 /test
parentc7e2d6a06d940a88964cd195a36b480ddf713796 (diff)
Test: use node IP addresses from variables
Diffstat (limited to 'test')
-rw-r--r--test/attach.test4
-rw-r--r--test/discovery.test4
-rw-r--r--test/sync.test4
3 files changed, 6 insertions, 6 deletions
diff --git a/test/attach.test b/test/attach.test
index e43cd10..3cbe63e 100644
--- a/test/attach.test
+++ b/test/attach.test
@@ -9,11 +9,11 @@ test:
send "start-server" to p2
expect from p1:
/local-identity Device1 Owner/
- /peer 1 addr 192.168.0.12 29665/
+ /peer 1 addr ${node2.ip} 29665/
/peer 1 id Device2/
expect from p2:
/local-identity Device2/
- /peer 1 addr 192.168.0.11 29665/
+ /peer 1 addr ${node1.ip} 29665/
/peer 1 id Device1 Owner/
send "attach-to 1" to p2
diff --git a/test/discovery.test b/test/discovery.test
index b477dc0..5709ee7 100644
--- a/test/discovery.test
+++ b/test/discovery.test
@@ -6,10 +6,10 @@ test:
send "start-server" to p1
send "start-server" to p2
expect from p1:
- /peer 1 addr 192.168.0.12 29665/
+ /peer 1 addr ${node2.ip} 29665/
/peer 1 id Device2/
expect from p2:
- /peer 1 addr 192.168.0.11 29665/
+ /peer 1 addr ${node1.ip} 29665/
/peer 1 id Device1 Owner/
send "update-local-identity Device1A" to p1
diff --git a/test/sync.test b/test/sync.test
index 34b7cc0..eb0c446 100644
--- a/test/sync.test
+++ b/test/sync.test
@@ -12,11 +12,11 @@ test:
expect from p1:
/local-identity Device1 Owner/
/shared-identity Owner/
- /peer 1 addr 192.168.0.12 29665/
+ /peer 1 addr ${node2.ip} 29665/
/peer 1 id Device2/
expect from p2:
/local-identity Device2/
- /peer 1 addr 192.168.0.11 29665/
+ /peer 1 addr ${node1.ip} 29665/
/peer 1 id Device1 Owner/
send "attach-to 1" to p2