diff options
author | Corey Hulen <corey@hulen.com> | 2016-04-25 05:39:02 -0700 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2016-04-25 08:39:02 -0400 |
commit | 1daa0d6b3e2d9adfb136bbe7554d3ad0fbd275da (patch) | |
tree | 863bff54a357d09accdab0484e64d13d747f1870 /api/command_loadtest_test.go | |
parent | a9cde2b0f9092adc7bac91519edff128e63aedef (diff) | |
download | chat-1daa0d6b3e2d9adfb136bbe7554d3ad0fbd275da.tar.gz chat-1daa0d6b3e2d9adfb136bbe7554d3ad0fbd275da.tar.bz2 chat-1daa0d6b3e2d9adfb136bbe7554d3ad0fbd275da.zip |
PLT-2298 fixing ephemeral message for loadtests (#2788)
* PLT-2298 fixing ephemeral message for loadtests
* Fixing unit tests
Diffstat (limited to 'api/command_loadtest_test.go')
-rw-r--r-- | api/command_loadtest_test.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/api/command_loadtest_test.go b/api/command_loadtest_test.go index 8c138842e..20e66d5eb 100644 --- a/api/command_loadtest_test.go +++ b/api/command_loadtest_test.go @@ -47,7 +47,7 @@ func TestLoadTestSetupCommands(t *testing.T) { utils.Cfg.ServiceSettings.EnableTesting = true rs := Client.Must(Client.Command(channel.Id, "/loadtest setup fuzz 1 1 1", false)).Data.(*model.CommandResponse) - if rs.Text != "Creating enviroment..." { + if rs.Text != "Created enviroment" { t.Fatal(rs.Text) } @@ -68,7 +68,7 @@ func TestLoadTestUsersCommands(t *testing.T) { utils.Cfg.ServiceSettings.EnableTesting = true rs := Client.Must(Client.Command(channel.Id, "/loadtest users fuzz 1 2", false)).Data.(*model.CommandResponse) - if rs.Text != "Adding users..." { + if rs.Text != "Added users" { t.Fatal(rs.Text) } @@ -89,7 +89,7 @@ func TestLoadTestChannelsCommands(t *testing.T) { utils.Cfg.ServiceSettings.EnableTesting = true rs := Client.Must(Client.Command(channel.Id, "/loadtest channels fuzz 1 2", false)).Data.(*model.CommandResponse) - if rs.Text != "Adding channels..." { + if rs.Text != "Added channels" { t.Fatal(rs.Text) } @@ -110,7 +110,7 @@ func TestLoadTestPostsCommands(t *testing.T) { utils.Cfg.ServiceSettings.EnableTesting = true rs := Client.Must(Client.Command(channel.Id, "/loadtest posts fuzz 2 3 2", false)).Data.(*model.CommandResponse) - if rs.Text != "Adding posts..." { + if rs.Text != "Added posts" { t.Fatal(rs.Text) } @@ -142,7 +142,7 @@ func TestLoadTestUrlCommands(t *testing.T) { } command = "/loadtest url https://raw.githubusercontent.com/mattermost/platform/master/README.md" - if r := Client.Must(Client.Command(channel.Id, command, false)).Data.(*model.CommandResponse); r.Text != "Loading data..." { + if r := Client.Must(Client.Command(channel.Id, command, false)).Data.(*model.CommandResponse); r.Text != "Loaded data" { t.Fatal("/loadtest url for README.md should've executed") } @@ -192,7 +192,7 @@ func TestLoadTestJsonCommands(t *testing.T) { } command = "/loadtest json test-slack-attachments" - if r := Client.Must(Client.Command(channel.Id, command, false)).Data.(*model.CommandResponse); r.Text != "Loading data..." { + if r := Client.Must(Client.Command(channel.Id, command, false)).Data.(*model.CommandResponse); r.Text != "Loaded data" { t.Fatal("/loadtest json should've executed") } |