diff options
-rw-r--r-- | attach.test | 6 | ||||
-rw-r--r-- | sync.test | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/attach.test b/attach.test index 3cbe63e..bfd8ba1 100644 --- a/attach.test +++ b/attach.test @@ -31,9 +31,9 @@ test: expect /attach-response-failed 1/ from p2 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 @@ -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 |