Skip to content

Commit 58bcc0c

Browse files
authored
Hotfix: Fixing how mls-test-cli is called (#3690)
WPB-5330: Remove command args that are upsetting mls-test-cli
1 parent 19babc8 commit 58bcc0c

File tree

4 files changed

+4
-3
lines changed
  • changelog.d/3-bug-fixes
  • integration/test/MLS
  • libs/wire-api/test/unit/Test/Wire/API
  • services/galley/test/integration/API/MLS

4 files changed

+4
-3
lines changed

changelog.d/3-bug-fixes/WPB-5330

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Updating tests to fix an issue calling `mls-test-cli`

integration/test/MLS/Util.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ createApplicationMessage cid messageContent = do
724724
message <-
725725
mlscli
726726
cid
727-
["message", "--group-in", "<group-in>", messageContent, "--group-out", "<group-out>"]
727+
["message", "--group", "<group-in>", messageContent]
728728
Nothing
729729

730730
pure

libs/wire-api/test/unit/Test/Wire/API/MLS.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ testParseApplication = do
123123
msgData <- withSystemTempDirectory "mls" $ \tmp -> do
124124
void $ spawn (cli qcid tmp ["init", qcid]) Nothing
125125
groupJSON <- spawn (cli qcid tmp ["group", "create", "Zm9v"]) Nothing
126-
spawn (cli qcid tmp ["message", "--group-in", "-", "hello"]) (Just groupJSON)
126+
spawn (cli qcid tmp ["message", "--group", "-", "hello"]) (Just groupJSON)
127127

128128
msg <- case decodeMLS' @Message msgData of
129129
Left err -> assertFailure (T.unpack err)

services/galley/test/integration/API/MLS/Util.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ createApplicationMessage cid messageContent = do
647647
message <-
648648
mlscli
649649
cid
650-
["message", "--group-in", "<group-in>", messageContent, "--group-out", "<group-out>"]
650+
["message", "--group", "<group-in>", messageContent]
651651
Nothing
652652

653653
pure $

0 commit comments

Comments
 (0)