summaryrefslogtreecommitdiffstats
path: root/api/channel_benchmark_test.go
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2015-07-06 00:50:42 -0800
committer=Corey Hulen <corey@hulen.com>2015-07-06 00:50:42 -0800
commit34fb817a4a4cd2761ba35a2c94f9d0eb79d06244 (patch)
treeeaf0ecaf55383449a5b2cc369fa8112109da7f0d /api/channel_benchmark_test.go
parentcbadc263864b1b0196b90b9afa1c68335f0ab7f1 (diff)
downloadchat-34fb817a4a4cd2761ba35a2c94f9d0eb79d06244.tar.gz
chat-34fb817a4a4cd2761ba35a2c94f9d0eb79d06244.tar.bz2
chat-34fb817a4a4cd2761ba35a2c94f9d0eb79d06244.zip
Fixing unit tests
Diffstat (limited to 'api/channel_benchmark_test.go')
-rw-r--r--api/channel_benchmark_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/api/channel_benchmark_test.go b/api/channel_benchmark_test.go
index 61de434ae..461a7ed3a 100644
--- a/api/channel_benchmark_test.go
+++ b/api/channel_benchmark_test.go
@@ -5,6 +5,7 @@ package api
import (
"github.com/mattermost/platform/model"
+ "github.com/mattermost/platform/store"
"github.com/mattermost/platform/utils"
"testing"
)
@@ -139,7 +140,7 @@ func BenchmarkJoinChannel(b *testing.B) {
// Secondary test user to join channels created by primary test user
user := &model.User{TeamId: team.Id, Email: model.NewId() + "random@test.com", FullName: "That Guy", Password: "pwd"}
user = Client.Must(Client.CreateUser(user, "")).Data.(*model.User)
- <-Srv.Store.User().VerifyEmail(user.Id)
+ store.Must(Srv.Store.User().VerifyEmail(user.Id))
Client.LoginByEmail(team.Domain, user.Email, "pwd")
// Benchmark Start