Skip to content

Commit

Permalink
add changelog and streamline test
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanwire committed Jan 23, 2025
1 parent 9b24138 commit 533a9d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
3 changes: 3 additions & 0 deletions changelog.d/3-bug-fixes/WPB-15400
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
MLS: when recreating external (backend) proposals, these are now propagated to
the clients only after the corresponding external commit has been forwarded to
the clients.
12 changes: 2 additions & 10 deletions integration/test/Test/MLS/SubConversation.hs
Original file line number Diff line number Diff line change
Expand Up @@ -362,16 +362,8 @@ testResendingProposals = do
}

-- consume proposals after backend resends them
void $ do
let ws = wsAlice1
commitMsg <- consumeMessage subConvId def (fromJust ws.client) Nothing ws -- commit
commitMsg %. "message.content.sender" `shouldMatch` "NewMemberCommit"
replicateM 3 do
msg <- consumeMessage subConvId def (fromJust ws.client) Nothing ws
msg %. "message.content.sender.External" `shouldMatchInt` 0
void $ do
let ws = wsAlice2
commitMsg <- consumeMessage subConvId def (fromJust ws.client) Nothing ws -- commit
for_ [wsAlice1, wsAlice2] $ \ws -> do
commitMsg <- consumeMessage subConvId def (fromJust ws.client) Nothing ws
commitMsg %. "message.content.sender" `shouldMatch` "NewMemberCommit"
replicateM 3 do
msg <- consumeMessage subConvId def (fromJust ws.client) Nothing ws
Expand Down

0 comments on commit 533a9d8

Please sign in to comment.