mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
[GH-18195] Remove all instances of zz + model.NewId() in storetest/us… (#18205)
Automatic Merge
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user