diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2022-06-04 22:24:15 +0200 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2022-06-04 22:24:15 +0200 |
commit | 15cf9a578d6de297c1f4a38e01ffa1028d3dcccc (patch) | |
tree | b47671a55402fb221860cc758c436a6a5ca4beae | |
parent | 585fac67835f393420127c0723289b538683b0a0 (diff) |
(test) Test: use node IP addresses from variables
-rw-r--r-- | attach.test | 4 | ||||
-rw-r--r-- | discovery.test | 4 | ||||
-rw-r--r-- | sync.test | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/attach.test b/attach.test index e43cd10..3cbe63e 100644 --- a/attach.test +++ b/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/discovery.test b/discovery.test index b477dc0..5709ee7 100644 --- a/discovery.test +++ b/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 @@ -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 |