From a41dd81c9138a5014eb338a5fd66ad5718b0b4b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=B6khan=20=C3=96zelo=C4=9Flu?= <33967642+gozeloglu@users.noreply.github.com> Date: Thu, 19 Aug 2021 18:15:03 +0300 Subject: [PATCH] =?UTF-8?q?[GH-18195]=20Remove=20all=20instances=20of=20zz?= =?UTF-8?q?=20+=20model.NewId()=20in=20storetest/us=E2=80=A6=20(#18205)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Automatic Merge --- store/storetest/user_store.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/store/storetest/user_store.go b/store/storetest/user_store.go index d9d5f41c15..167de8c693 100644 --- a/store/storetest/user_store.go +++ b/store/storetest/user_store.go @@ -2764,7 +2764,7 @@ func testUserStoreSearchNotInChannel(t *testing.T, ss store.Store) { ch1 := model.Channel{ TeamId: tid, DisplayName: "NameName", - Name: "zz" + model.NewId() + "b", + Name: NewTestId(), Type: model.ChannelTypeOpen, } c1, nErr := ss.Channel().Save(&ch1, -1) @@ -2773,7 +2773,7 @@ func testUserStoreSearchNotInChannel(t *testing.T, ss store.Store) { ch2 := model.Channel{ TeamId: tid, DisplayName: "NameName", - Name: "zz" + model.NewId() + "b", + Name: NewTestId(), Type: model.ChannelTypeOpen, } c2, nErr := ss.Channel().Save(&ch2, -1) @@ -2993,7 +2993,7 @@ func testUserStoreSearchInChannel(t *testing.T, ss store.Store) { ch1 := model.Channel{ TeamId: tid, DisplayName: "NameName", - Name: "zz" + model.NewId() + "b", + Name: NewTestId(), Type: model.ChannelTypeOpen, } c1, nErr := ss.Channel().Save(&ch1, -1) @@ -3002,7 +3002,7 @@ func testUserStoreSearchInChannel(t *testing.T, ss store.Store) { ch2 := model.Channel{ TeamId: tid, DisplayName: "NameName", - Name: "zz" + model.NewId() + "b", + Name: NewTestId(), Type: model.ChannelTypeOpen, } c2, nErr := ss.Channel().Save(&ch2, -1) @@ -4186,7 +4186,7 @@ func testUserStoreAnalyticsGetExternalUsers(t *testing.T, ss store.Store) { func testUserStoreGetProfilesNotInTeam(t *testing.T, ss store.Store) { team, err := ss.Team().Save(&model.Team{ DisplayName: "Team", - Name: "zz" + model.NewId(), + Name: NewTestId(), Type: model.TeamOpen, }) require.NoError(t, err) @@ -4498,7 +4498,7 @@ func testUserStoreGetUsersBatchForIndexing(t *testing.T, ss store.Store) { // Set up all the objects needed t1, err := ss.Team().Save(&model.Team{ DisplayName: "Team1", - Name: "zz" + model.NewId(), + Name: NewTestId(), Type: model.TeamOpen, }) require.NoError(t, err)