Skip to content

Commit

Permalink
[fix]: flaky test for leaving self-conv MLS (#3664)
Browse files Browse the repository at this point in the history
  • Loading branch information
elland authored Oct 23, 2023
1 parent 8fb2766 commit e21a24e
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions services/galley/test/integration/API/MLS.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1733,17 +1733,15 @@ testSelfConversationLeave :: TestM ()
testSelfConversationLeave = do
alice <- randomQualifiedUser
runMLSTest $ do
clients@(creator : others) <- traverse createMLSClient (replicate 3 alice)
(creator : others) <- traverse createMLSClient (replicate 3 alice)
traverse_ uploadNewKeyPackage others
(_, qcnv) <- setupMLSSelfGroup creator
void $ createAddCommit creator [alice] >>= sendAndConsumeCommitBundle
mlsBracket clients $ \wss -> do
liftTest $
deleteMemberQualified (qUnqualified alice) alice qcnv
!!! do
const 403 === statusCode
const (Just "invalid-op") === fmap Wai.label . responseJsonError
WS.assertNoEvent (1 # WS.Second) wss
liftTest $
deleteMemberQualified (qUnqualified alice) alice qcnv
!!! do
const 403 === statusCode
const (Just "invalid-op") === fmap Wai.label . responseJsonError

assertMLSNotEnabled :: Assertions ()
assertMLSNotEnabled = do
Expand Down

0 comments on commit e21a24e

Please sign in to comment.