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 | 5e63d0a516de660ed215b0f8ebe8d3e5d697f19e (patch) | |
tree | e33ca68d74681d900a2bc1940dcf8a1e4196ddc1 /test | |
parent | c7e2d6a06d940a88964cd195a36b480ddf713796 (diff) |
Test: use node IP addresses from variables
Diffstat (limited to 'test')
-rw-r--r-- | test/attach.test | 4 | ||||
-rw-r--r-- | test/discovery.test | 4 | ||||
-rw-r--r-- | test/sync.test | 4 |
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 |