summaryrefslogtreecommitdiffstats
path: root/api/api_test.go
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2015-07-05 09:06:56 -0800
committer=Corey Hulen <corey@hulen.com>2015-07-05 09:06:56 -0800
commitec2af296b25d6edef0fea54a8af02bed912c6e37 (patch)
treef5d9dda732570d1d59f6686db087416c57aa10e4 /api/api_test.go
parent592d68cf4134b668e3ff962d17f8aa75b1bc055f (diff)
downloadchat-ec2af296b25d6edef0fea54a8af02bed912c6e37.tar.gz
chat-ec2af296b25d6edef0fea54a8af02bed912c6e37.tar.bz2
chat-ec2af296b25d6edef0fea54a8af02bed912c6e37.zip
fixing race condition in unit tests
Diffstat (limited to 'api/api_test.go')
-rw-r--r--api/api_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/api_test.go b/api/api_test.go
index ffa951f6d..398edff5e 100644
--- a/api/api_test.go
+++ b/api/api_test.go
@@ -27,7 +27,7 @@ func SetupBenchmark() (*model.Team, *model.User, *model.Channel) {
team = Client.Must(Client.CreateTeam(team)).Data.(*model.Team)
user := &model.User{TeamId: team.Id, Email: model.NewId() + "benchmark@test.com", FullName: "Mr. Benchmarker", Password: "pwd"}
user = Client.Must(Client.CreateUser(user, "")).Data.(*model.User)
- Srv.Store.User().VerifyEmail(user.Id)
+ <-Srv.Store.User().VerifyEmail(user.Id)
Client.LoginByEmail(team.Domain, user.Email, "pwd")
channel := &model.Channel{DisplayName: "Benchmark Channel", Name: "a" + model.NewId() + "a", Type: model.CHANNEL_OPEN, TeamId: team.Id}
channel = Client.Must(Client.CreateChannel(channel)).Data.(*model.Channel)