diff options
author | Chris <ccbrown112@gmail.com> | 2017-10-02 03:50:56 -0500 |
---|---|---|
committer | George Goldberg <george@gberg.me> | 2017-10-02 09:50:56 +0100 |
commit | 9bc7af0c5704bbf73f8240b4569d5ea215352e39 (patch) | |
tree | b17ddafc83ab43ccdce2116e83358299a08a50a6 /api/general_test.go | |
parent | b84736e9b6401df0c6eeab9950bef09458a6aefd (diff) | |
download | chat-9bc7af0c5704bbf73f8240b4569d5ea215352e39.tar.gz chat-9bc7af0c5704bbf73f8240b4569d5ea215352e39.tar.bz2 chat-9bc7af0c5704bbf73f8240b4569d5ea215352e39.zip |
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
Diffstat (limited to 'api/general_test.go')
-rw-r--r-- | api/general_test.go | 3 |
1 files changed, 3 insertions, 0 deletions
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) |