Skip to content

Commit

Permalink
[SQSERVICES-1848] Flaky test team user search query with paging state (
Browse files Browse the repository at this point in the history
  • Loading branch information
battermann authored Jan 17, 2023
1 parent 37d9b3f commit b2d243a
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions changelog.d/5-internal/sqservices-1848
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed flaky team user search integration test
2 changes: 1 addition & 1 deletion docs/convert/shell.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ pkgs ? import <nixpkgs> {} }:
{ pkgs ? import <nixpkgs> { } }:
(pkgs.buildFHSUserEnv {
name = "pipzone";
targetPkgs = pkgs: (with pkgs; [
Expand Down
1 change: 0 additions & 1 deletion services/brig/src/Brig/User/Search/Index.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE NumericUnderscores #-}
{-# LANGUAGE StrictData #-}

-- This file is part of the Wire Server implementation.
Expand Down
1 change: 0 additions & 1 deletion services/brig/test/integration/API/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
--
-- You should have received a copy of the GNU Affero General Public License along
-- with this program. If not, see <https://www.gnu.org/licenses/>.
{-# LANGUAGE NumericUnderscores #-}

module API.Internal
( tests,
Expand Down
2 changes: 1 addition & 1 deletion services/brig/test/integration/API/TeamUserSearch.hs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ testEmptyQuerySortedWithPagination :: TestConstraints m => Brig -> m ()
testEmptyQuerySortedWithPagination brig = do
(tid, userId -> ownerId, _) <- createPopulatedBindingTeamWithNamesAndHandles brig 20
refreshIndex brig
let teamUserSearch mPs = executeTeamUserSearchWithMaybeState brig tid ownerId (Just "") Nothing (Just SortByRole) (Just SortOrderAsc) (Just $ unsafeRange 10) mPs
let teamUserSearch mPs = executeTeamUserSearchWithMaybeState brig tid ownerId (Just "") Nothing Nothing Nothing (Just $ unsafeRange 10) mPs
searchResultFirst10 <- teamUserSearch Nothing
searchResultNext10 <- teamUserSearch (searchPagingState searchResultFirst10)
searchResultLast1 <- teamUserSearch (searchPagingState searchResultNext10)
Expand Down

0 comments on commit b2d243a

Please sign in to comment.