diff options
author | Corey Hulen <corey@hulen.com> | 2015-09-18 09:49:49 -0700 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2015-09-18 09:49:49 -0700 |
commit | 0ddabaf8dea72318198ea4e7c4f2844af284b808 (patch) | |
tree | d7860c6334743bf34b16ddd6f8506d05713ba40e /api | |
parent | 5a436fd447753124b3f7705ecb123ecf5762bc24 (diff) | |
parent | c42a547b4fcd38e065ad2f702110395e9c76cb67 (diff) | |
download | chat-0ddabaf8dea72318198ea4e7c4f2844af284b808.tar.gz chat-0ddabaf8dea72318198ea4e7c4f2844af284b808.tar.bz2 chat-0ddabaf8dea72318198ea4e7c4f2844af284b808.zip |
Merge pull request #717 from mattermost/fix-loadtest
Fix authentication for server load tests.
Diffstat (limited to 'api')
-rw-r--r-- | api/command.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/api/command.go b/api/command.go index be1d3229b..bc55f206b 100644 --- a/api/command.go +++ b/api/command.go @@ -341,7 +341,7 @@ func loadTestSetupCommand(c *Context, command *model.Command) bool { } } } else { - client.MockSession(c.Session.Id) + client.MockSession(c.Session.Token) CreateTestEnviromentInTeam( client, c.Session.TeamId, @@ -406,7 +406,7 @@ func loadTestChannelsCommand(c *Context, command *model.Command) bool { channelsr = utils.Range{20, 30} } client := model.NewClient(c.GetSiteURL()) - client.MockSession(c.Session.Id) + client.MockSession(c.Session.Token) channelCreator := NewAutoChannelCreator(client, c.Session.TeamId) channelCreator.Fuzzy = doFuzz channelCreator.CreateTestChannels(channelsr) @@ -458,7 +458,7 @@ func loadTestPostsCommand(c *Context, command *model.Command) bool { } client := model.NewClient(c.GetSiteURL()) - client.MockSession(c.Session.Id) + client.MockSession(c.Session.Token) testPoster := NewAutoPostCreator(client, command.ChannelId) testPoster.Fuzzy = doFuzz testPoster.Users = usernames |