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/general_test.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'api/general_test.go') diff --git a/api/general_test.go b/api/general_test.go index cec1032eb..3de39ca83 100644 --- a/api/general_test.go +++ b/api/general_test.go @@ -11,6 +11,7 @@ import ( func TestGetClientProperties(t *testing.T) { th := Setup().InitBasic() + defer th.TearDown() if props, err := th.BasicClient.GetClientProperties(); err != nil { t.Fatal(err) @@ -23,6 +24,7 @@ func TestGetClientProperties(t *testing.T) { func TestLogClient(t *testing.T) { th := Setup().InitBasic() + defer th.TearDown() if ret, _ := th.BasicClient.LogClient("this is a test"); !ret { t.Fatal("failed to log") @@ -49,6 +51,7 @@ func TestLogClient(t *testing.T) { func TestGetPing(t *testing.T) { th := Setup().InitBasic() + defer th.TearDown() if m, err := th.BasicClient.GetPing(); err != nil { t.Fatal(err) -- cgit v1.2.3-1-g7c22