mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
changing unit test
This commit is contained in:
@@ -109,7 +109,10 @@ func TestTeamStoreGetByDomain(t *testing.T) {
|
|||||||
o1.Domain = "a" + model.NewId() + "b"
|
o1.Domain = "a" + model.NewId() + "b"
|
||||||
o1.Email = model.NewId() + "@nowhere.com"
|
o1.Email = model.NewId() + "@nowhere.com"
|
||||||
o1.Type = model.TEAM_OPEN
|
o1.Type = model.TEAM_OPEN
|
||||||
<-store.Team().Save(&o1)
|
|
||||||
|
if err := (<-store.Team().Save(&o1)).Err; err != nil {
|
||||||
|
t.Fatal(rrr)
|
||||||
|
}
|
||||||
|
|
||||||
if r1 := <-store.Team().GetByDomain(o1.Domain); r1.Err != nil {
|
if r1 := <-store.Team().GetByDomain(o1.Domain); r1.Err != nil {
|
||||||
t.Fatal(r1.Err)
|
t.Fatal(r1.Err)
|
||||||
|
|||||||
Reference in New Issue
Block a user