Skip to content

Commit 1b5a58b

Browse files
committed
Use harcoded names in user group test
1 parent 0b87259 commit 1b5a58b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

libs/wire-subsystems/test/unit/Wire/UserGroupSubsystem/InterpreterSpec.hs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
module Wire.UserGroupSubsystem.InterpreterSpec (spec) where
44

5+
import Control.Error.Util (hush)
56
import Control.Lens ((.~), (^.))
67
import Control.Monad
78
import Data.Aeson qualified as A
@@ -266,13 +267,13 @@ spec = timeoutHook $ describe "UserGroupSubsystem.Interpreter" do
266267

267268
prop "team members can only get user groups from their own team" $
268269
\(WithMods team1 :: WithMods '[AtLeastOneNonAdmin] ArbitraryTeam)
269-
userGroupName1
270-
(WithMods team2 :: WithMods '[AtLeastOneNonAdmin] ArbitraryTeam)
271-
userGroupName2 ->
270+
(WithMods team2 :: WithMods '[AtLeastOneNonAdmin] ArbitraryTeam) ->
272271
expectRight
273272
. runDependencies (allUsers team1 <> allUsers team2) (galleyTeam team1 <> galleyTeam team2)
274273
. interpretUserGroupSubsystem
275274
$ do
275+
let userGroupName1 = fromJust . hush $ userGroupNameFromText "first"
276+
let userGroupName2 = fromJust . hush $ userGroupNameFromText "second"
276277
let newUserGroup1 =
277278
NewUserGroup
278279
{ name = userGroupName1,

0 commit comments

Comments
 (0)