summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2015-06-16 10:15:00 -0800
committer=Corey Hulen <corey@hulen.com>2015-06-16 10:15:00 -0800
commitb34652231167b387aa7e66a33b9dab42d59dbe66 (patch)
tree0b656b4988daa2d84e15b6c13cba2380c5f9fa46
parent2e75610668e21390a00130160379a83e90f0753f (diff)
downloadchat-b34652231167b387aa7e66a33b9dab42d59dbe66.tar.gz
chat-b34652231167b387aa7e66a33b9dab42d59dbe66.tar.bz2
chat-b34652231167b387aa7e66a33b9dab42d59dbe66.zip
changing unit test
-rw-r--r--store/sql_team_store_test.go5
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..1caec467b 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(rrr)
+ }
if r1 := <-store.Team().GetByDomain(o1.Domain); r1.Err != nil {
t.Fatal(r1.Err)