From 9bc7af0c5704bbf73f8240b4569d5ea215352e39 Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 2 Oct 2017 03:50:56 -0500 Subject: Don't use global app for api / api4 tests (#7528) * don't use global app for api / api4 tests * put sleep back. we're gonna have to do some goroutine wrangling * fix oauth test config assumptions * jobs package, i'm comin' for you next * app test fix * try increasing sleep a little --- api/command_loadtest_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'api/command_loadtest_test.go') diff --git a/api/command_loadtest_test.go b/api/command_loadtest_test.go index e7c8f1e3f..346b3379e 100644 --- a/api/command_loadtest_test.go +++ b/api/command_loadtest_test.go @@ -14,6 +14,8 @@ import ( func TestLoadTestHelpCommands(t *testing.T) { th := Setup().InitBasic() + defer th.TearDown() + Client := th.BasicClient channel := th.BasicChannel @@ -35,6 +37,8 @@ func TestLoadTestHelpCommands(t *testing.T) { func TestLoadTestSetupCommands(t *testing.T) { th := Setup().InitBasic() + defer th.TearDown() + Client := th.BasicClient channel := th.BasicChannel @@ -56,6 +60,8 @@ func TestLoadTestSetupCommands(t *testing.T) { func TestLoadTestUsersCommands(t *testing.T) { th := Setup().InitBasic() + defer th.TearDown() + Client := th.BasicClient channel := th.BasicChannel @@ -77,6 +83,8 @@ func TestLoadTestUsersCommands(t *testing.T) { func TestLoadTestChannelsCommands(t *testing.T) { th := Setup().InitBasic() + defer th.TearDown() + Client := th.BasicClient channel := th.BasicChannel @@ -98,6 +106,8 @@ func TestLoadTestChannelsCommands(t *testing.T) { func TestLoadTestPostsCommands(t *testing.T) { th := Setup().InitBasic() + defer th.TearDown() + Client := th.BasicClient channel := th.BasicChannel -- cgit v1.2.3-1-g7c22