summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2016-03-16 09:38:35 -0700
committer=Corey Hulen <corey@hulen.com>2016-03-16 09:38:35 -0700
commit64f9b7ec089f56303b5eca696fff741f6618952b (patch)
tree51d2e26fdb9ccee2f113ee5fd7fa3b2e7d870856 /api
parent29fe6a3d13c9c7aa490fffebbe5d1b5fdf1e3090 (diff)
downloadchat-64f9b7ec089f56303b5eca696fff741f6618952b.tar.gz
chat-64f9b7ec089f56303b5eca696fff741f6618952b.tar.bz2
chat-64f9b7ec089f56303b5eca696fff741f6618952b.zip
PLT-2344 support 3 versions back
Diffstat (limited to 'api')
-rw-r--r--api/command_loadtest_test.go32
1 files changed, 17 insertions, 15 deletions
diff --git a/api/command_loadtest_test.go b/api/command_loadtest_test.go
index 1debc766a..ef370cf19 100644
--- a/api/command_loadtest_test.go
+++ b/api/command_loadtest_test.go
@@ -201,21 +201,23 @@ func TestLoadTestUrlCommands(t *testing.T) {
t.Fatal("/loadtest url for README.md should've executed")
}
- command = "/loadtest url test-emoticons1.md"
- if r := Client.Must(Client.Command(channel.Id, command, false)).Data.(*model.CommandResponse); r.Text != "Loading data..." {
- t.Fatal("/loadtest url for test-emoticons.md should've executed")
- }
-
- command = "/loadtest url test-emoticons1"
- if r := Client.Must(Client.Command(channel.Id, command, false)).Data.(*model.CommandResponse); r.Text != "Loading data..." {
- t.Fatal("/loadtest url for test-emoticons should've executed")
- }
-
- posts := Client.Must(Client.GetPosts(channel.Id, 0, 5, "")).Data.(*model.PostList)
- // note that this may make more than 3 posts if files are too long to fit in an individual post
- if len(posts.Order) < 3 {
- t.Fatal("/loadtest url made too few posts, perhaps there needs to be a delay before GetPosts in the test?")
- }
+ // Removing these tests since they break compatibilty with previous release branches because the url pulls from github master
+
+ // command = "/loadtest url test-emoticons1.md"
+ // if r := Client.Must(Client.Command(channel.Id, command, false)).Data.(*model.CommandResponse); r.Text != "Loading data..." {
+ // t.Fatal("/loadtest url for test-emoticons.md should've executed")
+ // }
+
+ // command = "/loadtest url test-emoticons1"
+ // if r := Client.Must(Client.Command(channel.Id, command, false)).Data.(*model.CommandResponse); r.Text != "Loading data..." {
+ // t.Fatal("/loadtest url for test-emoticons should've executed")
+ // }
+
+ // posts := Client.Must(Client.GetPosts(channel.Id, 0, 5, "")).Data.(*model.PostList)
+ // // note that this may make more than 3 posts if files are too long to fit in an individual post
+ // if len(posts.Order) < 3 {
+ // t.Fatal("/loadtest url made too few posts, perhaps there needs to be a delay before GetPosts in the test?")
+ // }
time.Sleep(2 * time.Second)
}