summaryrefslogtreecommitdiff
path: root/sync.test
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2022-06-25 22:17:59 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2022-06-25 22:17:59 +0200
commitdea138f42b9e4975eab833655521e8c529d706b0 (patch)
tree01e849ff3a79b409ef3a635afd2b706b1ffb4142 /sync.test
parent15cf9a578d6de297c1f4a38e01ffa1028d3dcccc (diff)
(test) Test: guard attach code match
Diffstat (limited to 'sync.test')
-rw-r--r--sync.test6
1 files changed, 3 insertions, 3 deletions
diff --git a/sync.test b/sync.test
index eb0c446..06d1a92 100644
--- a/sync.test
+++ b/sync.test
@@ -20,9 +20,9 @@ test:
/peer 1 id Device1 Owner/
send "attach-to 1" to p2
- expect /attach-request 1 .*/ from p1
- expect /attach-response 1 .*/ from p2
- # TODO: check code match
+ expect /attach-request 1 ([0-9]*)/ from p1 capture code1
+ expect /attach-response 1 ([0-9]*)/ from p2 capture code2
+ guard code1 == code2
send "attach-accept 1" to p1
send "attach-accept 1" to p2