summaryrefslogtreecommitdiff
path: root/attach.test
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2022-12-04 21:52:49 +0100
committerRoman Smrž <roman.smrz@seznam.cz>2022-12-04 21:52:49 +0100
commit97d1ed362f8eff22d859dcbc668a51e55b6e3183 (patch)
tree0daf1bddf7c173d9dcb070b9dc1c430cb1130900 /attach.test
parentc8c84f84b5f761d6aea2e9a68f374574835d83e2 (diff)
(test) Test: avoid introducing node variables by spawn
Diffstat (limited to 'attach.test')
-rw-r--r--attach.test8
1 files changed, 4 insertions, 4 deletions
diff --git a/attach.test b/attach.test
index 3b202e6..1e2f5e8 100644
--- a/attach.test
+++ b/attach.test
@@ -1,6 +1,6 @@
test:
- spawn on node1 as p1
- spawn on node2 as p2
+ spawn as p1
+ spawn as p2
send "create-identity Device1 Owner" to p1
send "create-identity Device2" to p2
send "watch-local-identity" to p1
@@ -9,11 +9,11 @@ test:
send "start-server" to p2
expect from p1:
/local-identity Device1 Owner/
- /peer 1 addr ${node2.ip} 29665/
+ /peer 1 addr ${p2.node.ip} 29665/
/peer 1 id Device2/
expect from p2:
/local-identity Device2/
- /peer 1 addr ${node1.ip} 29665/
+ /peer 1 addr ${p1.node.ip} 29665/
/peer 1 id Device1 Owner/
send "attach-to 1" to p2