Skip to content

Commit

Permalink
Updated leave subconv test
Browse files Browse the repository at this point in the history
  • Loading branch information
elland committed Jan 12, 2023
1 parent 1b1286c commit 1892822
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions services/galley/test/integration/API/MLS.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2623,8 +2623,15 @@ testRemoveUserMain = do
void $ createPendingProposalCommit alice1 >>= sendAndConsumeCommitBundle

liftTest $ do
getSubConv (qUnqualified charlie) qcnv (SubConvId "conference")
!!! const 403 === statusCode

sub :: PublicSubConversation <-
responseJsonError
=<< getSubConv (qUnqualified charlie) qcnv (SubConvId "conference")
=<< getSubConv (qUnqualified bob) qcnv (SubConvId "conference")
<!! const 200 === statusCode
print $ pscMembers sub
liftIO $
assertEqual
"subconv membership mismatch after removal"
(sort [bob1, bob2, alice1])
(sort $ pscMembers sub)

0 comments on commit 1892822

Please sign in to comment.