summaryrefslogtreecommitdiff
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
commit3dc8bfbf9be49896407cdc32ad8c9c7789ac9545 (patch)
tree442c61be5e5180216806d751a5cd0a7328705669
parent9637cefdebe3e1425034a5c3e7ba9137d564e6db (diff)
Test: avoid introducing node variables by spawn
-rw-r--r--test/attach.test8
-rw-r--r--test/discovery.test8
-rw-r--r--test/storage.test2
-rw-r--r--test/sync.test8
4 files changed, 13 insertions, 13 deletions
diff --git a/test/attach.test b/test/attach.test
index 3b202e6..1e2f5e8 100644
--- a/test/attach.test
+++ b/test/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
diff --git a/test/discovery.test b/test/discovery.test
index 5709ee7..152b1d9 100644
--- a/test/discovery.test
+++ b/test/discovery.test
@@ -1,15 +1,15 @@
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 "start-server" to p1
send "start-server" to p2
expect from p1:
- /peer 1 addr ${node2.ip} 29665/
+ /peer 1 addr ${p2.node.ip} 29665/
/peer 1 id Device2/
expect from p2:
- /peer 1 addr ${node1.ip} 29665/
+ /peer 1 addr ${p1.node.ip} 29665/
/peer 1 id Device1 Owner/
send "update-local-identity Device1A" to p1
diff --git a/test/storage.test b/test/storage.test
index 12e267d..17859cc 100644
--- a/test/storage.test
+++ b/test/storage.test
@@ -1,5 +1,5 @@
test:
- spawn on node1 as p1
+ spawn as p1
# Root finding
###############
diff --git a/test/sync.test b/test/sync.test
index b9f3354..3830eb0 100644
--- a/test/sync.test
+++ b/test/sync.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
@@ -12,11 +12,11 @@ test:
expect from p1:
/local-identity Device1 Owner/
/shared-identity 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