Skip to content

Commit

Permalink
Remove an unused fed client argument in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mdimjasevic committed Dec 15, 2023
1 parent b893c2f commit 19e9208
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
5 changes: 2 additions & 3 deletions services/brig/test/integration/API/User.hs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ import Wire.API.Federation.Component
tests ::
Opt.Opts ->
FedClient 'Brig ->
FedClient 'Galley ->
Manager ->
Brig ->
Cannon ->
Expand All @@ -57,7 +56,7 @@ tests ::
DB.ClientState ->
UserJournalWatcher ->
IO TestTree
tests conf fbc fgc p b c ch g n aws db userJournalWatcher = do
tests conf fbc p b c ch g n aws db userJournalWatcher = do
let cl = ConnectionLimit $ Opt.setUserMaxConnections (Opt.optSettings conf)
let at = Opt.setActivationTimeout (Opt.optSettings conf)
z <- mkZAuthEnv (Just conf)
Expand All @@ -67,7 +66,7 @@ tests conf fbc fgc p b c ch g n aws db userJournalWatcher = do
[ API.User.Client.tests cl at conf p db n b c g,
API.User.Account.tests cl at conf p b c ch g aws userJournalWatcher,
API.User.Auth.tests conf p z db b g n,
API.User.Connection.tests cl at p b c g fbc fgc db,
API.User.Connection.tests cl at p b c g fbc db,
API.User.Handles.tests cl at conf p b c g,
API.User.PasswordReset.tests db cl at conf p b c g,
API.User.Property.tests cl at conf p b c g,
Expand Down
3 changes: 1 addition & 2 deletions services/brig/test/integration/API/User/Connection.hs
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,9 @@ tests ::
Cannon ->
Galley ->
FedClient 'Brig ->
FedClient 'Galley ->
DB.ClientState ->
TestTree
tests cl _at p b _c g fedBrigClient _fedGalleyClient db =
tests cl _at p b _c g fedBrigClient db =
testGroup
"connection"
[ test p "post /connections" $ testCreateManualConnections b,
Expand Down
3 changes: 1 addition & 2 deletions services/brig/test/integration/Run.hs
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,10 @@ runTests iConf brigOpts otherArgs = do
db <- defInitCassandra casKey casHost casPort lg
mg <- newManager tlsManagerSettings
let fedBrigClient = FedClient @'Brig mg (brig iConf)
let fedGalleyClient = FedClient @'Galley mg (galley iConf)
emailAWSOpts <- parseEmailAWSOpts
awsEnv <- AWS.mkEnv lg awsOpts emailAWSOpts mg
mUserJournalWatcher <- for (Opts.userJournalQueue awsOpts) $ SQS.watchSQSQueue (view AWS.amazonkaEnv awsEnv)
userApi <- User.tests brigOpts fedBrigClient fedGalleyClient mg b c ch g n awsEnv db mUserJournalWatcher
userApi <- User.tests brigOpts fedBrigClient mg b c ch g n awsEnv db mUserJournalWatcher
providerApi <- Provider.tests localDomain (provider iConf) mg db b c g n
searchApis <- Search.tests brigOpts mg g b
teamApis <- Team.tests brigOpts mg n b c g mUserJournalWatcher
Expand Down

0 comments on commit 19e9208

Please sign in to comment.