mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Fix the flaky TestTeamStoreSearchByName test in store/sql_team_store_test.go (#6187)
This commit is contained in:
committed by
George Goldberg
parent
ecb10ed62f
commit
788df7a4bd
@@ -138,7 +138,8 @@ func TestTeamStoreSearchByName(t *testing.T) {
|
||||
|
||||
o1 := model.Team{}
|
||||
o1.DisplayName = "DisplayName"
|
||||
o1.Name = "zzz" + model.NewId() + "b"
|
||||
var name = "zzz" + model.NewId()
|
||||
o1.Name = name + "b"
|
||||
o1.Email = model.NewId() + "@nowhere.com"
|
||||
o1.Type = model.TEAM_OPEN
|
||||
|
||||
@@ -146,7 +147,7 @@ func TestTeamStoreSearchByName(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
if r1 := <-store.Team().SearchByName("zzz"); r1.Err != nil {
|
||||
if r1 := <-store.Team().SearchByName(name); r1.Err != nil {
|
||||
t.Fatal(r1.Err)
|
||||
} else {
|
||||
if r1.Data.([]*model.Team)[0].ToJson() != o1.ToJson() {
|
||||
|
||||
Reference in New Issue
Block a user