diff options
Diffstat (limited to 'store')
-rw-r--r-- | store/sql_team_store_test.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/store/sql_team_store_test.go b/store/sql_team_store_test.go index 981817d90..1b03b75fd 100644 --- a/store/sql_team_store_test.go +++ b/store/sql_team_store_test.go @@ -109,7 +109,10 @@ func TestTeamStoreGetByDomain(t *testing.T) { o1.Domain = "a" + model.NewId() + "b" o1.Email = model.NewId() + "@nowhere.com" o1.Type = model.TEAM_OPEN - <-store.Team().Save(&o1) + + if err := (<-store.Team().Save(&o1)).Err; err != nil { + t.Fatal(err) + } if r1 := <-store.Team().GetByDomain(o1.Domain); r1.Err != nil { t.Fatal(r1.Err) |