summaryrefslogtreecommitdiffstats
path: root/model/client.go
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2018-04-27 14:12:01 -0700
committerChristopher Speller <crspeller@gmail.com>2018-04-27 14:12:01 -0700
commiteb9ff34fcfa51cd8205841a02f3d3d61ec5be8fa (patch)
treeed01fd9488bd86f6c2daf0b299dff5beb43973db /model/client.go
parent2386acb3ddabd8827e21b1862c338a8b13a25de6 (diff)
parent2e6b3da1d3466db379fef0d61a23e2878d17ee9d (diff)
downloadchat-eb9ff34fcfa51cd8205841a02f3d3d61ec5be8fa.tar.gz
chat-eb9ff34fcfa51cd8205841a02f3d3d61ec5be8fa.tar.bz2
chat-eb9ff34fcfa51cd8205841a02f3d3d61ec5be8fa.zip
Merge branch 'master' into advanced-permissions-phase-2
Diffstat (limited to 'model/client.go')
-rw-r--r--model/client.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/model/client.go b/model/client.go
index 317374d36..e648ca279 100644
--- a/model/client.go
+++ b/model/client.go
@@ -14,8 +14,6 @@ import (
"strconv"
"strings"
"time"
-
- l4g "github.com/alecthomas/log4go"
)
var UsedApiV3 *int32 = new(int32)
@@ -210,7 +208,7 @@ func getCookie(name string, resp *http.Response) *http.Cookie {
// Must is a convenience function used for testing.
func (c *Client) Must(result *Result, err *AppError) *Result {
if err != nil {
- l4g.Close()
+
time.Sleep(time.Second)
panic(err)
}
@@ -221,7 +219,7 @@ func (c *Client) Must(result *Result, err *AppError) *Result {
// MustGeneric is a convenience function used for testing.
func (c *Client) MustGeneric(result interface{}, err *AppError) interface{} {
if err != nil {
- l4g.Close()
+
time.Sleep(time.Second)
panic(err)
}