Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
duogenesis committed Dec 29, 2024
1 parent ce82684 commit 6c26346
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions test/functionality4/xmpp-inbox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,13 @@ mark_displayed () {

echo "The inbox is as expected after users message each other"


# Who messaged who:
# ┌───┐ ┌───┐
# │ 1 │◄───────────│ 2 │
# └───┘ ┌─────►└─┬─┘
# ▲ ┌─┴─┐ │
# └────┤ 3 │◄─────┘
# └───┘
send_message "$user2uuid" "$user2token" "$user1uuid" "from user 2 to user 1"
send_message "$user2uuid" "$user2token" "$user3uuid" "from user 2 to user 3"

Expand Down Expand Up @@ -189,7 +195,7 @@ expected_inbox_2=$(cat << EOF
<message xmlns="jabber:client" from="$user2uuid@duolicious.app" to="$user2uuid@duolicious.app" id="id1"><result xmlns="erlang-solutions.com:xmpp:inbox:0" unread="1" queryid="$query_id_2"><forwarded xmlns="urn:xmpp:forward:0"><delay xmlns="urn:xmpp:delay" stamp="redacted"/><message xmlns="jabber:client" type="chat" from="$user3uuid@duolicious.app" to="$user2uuid@duolicious.app" id="id1">
<body>from user 3 to user 2</body>
<request xmlns="urn:xmpp:receipts"/>
</message></forwarded><read>false</read><box>inbox</box><archive>false</archive><mute>0</mute></result></message>
</message></forwarded><read>false</read><box>chats</box><archive>false</archive><mute>0</mute></result></message>
<iq id='$query_id_2' type='result'><fin/></iq>
EOF
)
Expand Down

0 comments on commit 6c26346

Please sign in to comment.