From 5e63d0a516de660ed215b0f8ebe8d3e5d697f19e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Sat, 4 Jun 2022 22:24:15 +0200 Subject: Test: use node IP addresses from variables --- test/attach.test | 4 ++-- test/discovery.test | 4 ++-- test/sync.test | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'test') 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 -- cgit v1.2.3