summaryrefslogtreecommitdiff
path: root/test/message.test
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2024-01-13 21:50:21 +0100
committerRoman Smrž <roman.smrz@seznam.cz>2024-01-24 21:32:27 +0100
commit33773031d59762a28fbc4673c7df2dd378b79d0e (patch)
tree82a9a82122920abaf8c29d0c557edc62ab08b2b0 /test/message.test
parent56b6a56b5d14781cd24e38860c082bfdab96c918 (diff)
Message: sync state when peer appears on network
Diffstat (limited to 'test/message.test')
-rw-r--r--test/message.test15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/message.test b/test/message.test
index f630c59..307f11a 100644
--- a/test/message.test
+++ b/test/message.test
@@ -132,3 +132,18 @@ test DirectMessage:
send "start-server" to p1
expect /dm-received from Owner1 text while_offline/ from p2
+
+ for p in [p1, p2]:
+ with p:
+ send "stop-server"
+ for p in [p1, p2]:
+ with p:
+ expect /stop-server-done/
+ send "start-server" to p1
+
+ send "dm-send-contact $c1_2 while_peer_offline" to p1
+ # TODO: sync from p1 on peer p2 discovery not ensured without addition wait
+ #wait
+ send "start-server" to p2
+
+ expect /dm-received from Owner1 text while_peer_offline/ from p2