summaryrefslogtreecommitdiffstats
path: root/api/api_test.go
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2015-07-06 11:24:06 -0800
committerCorey Hulen <corey@hulen.com>2015-07-06 11:24:06 -0800
commit3dec509899f60ca0d2eadfcc192ccc49969852ef (patch)
treea86552979d6fab4dbe336171ade9d3e69b64fff0 /api/api_test.go
parent10b625ba1740c6177cfe5c06484f4a14867523bd (diff)
parent34fb817a4a4cd2761ba35a2c94f9d0eb79d06244 (diff)
downloadchat-3dec509899f60ca0d2eadfcc192ccc49969852ef.tar.gz
chat-3dec509899f60ca0d2eadfcc192ccc49969852ef.tar.bz2
chat-3dec509899f60ca0d2eadfcc192ccc49969852ef.zip
Merge pull request #131 from mattermost/mm-1391
Fixes mm-1391 adding travis CI
Diffstat (limited to 'api/api_test.go')
-rw-r--r--api/api_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/api/api_test.go b/api/api_test.go
index ffa951f6d..b407c2a5e 100644
--- a/api/api_test.go
+++ b/api/api_test.go
@@ -5,6 +5,7 @@ package api
import (
"github.com/mattermost/platform/model"
+ "github.com/mattermost/platform/store"
"github.com/mattermost/platform/utils"
)
@@ -27,7 +28,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)
+ store.Must(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)