summaryrefslogtreecommitdiffstats
path: root/app/oauth_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/oauth_test.go')
-rw-r--r--app/oauth_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/oauth_test.go b/app/oauth_test.go
index d756c0abe..81f331657 100644
--- a/app/oauth_test.go
+++ b/app/oauth_test.go
@@ -12,6 +12,8 @@ import (
func TestOAuthRevokeAccessToken(t *testing.T) {
th := Setup()
+ defer th.TearDown()
+
if err := th.App.RevokeAccessToken(model.NewRandomString(16)); err == nil {
t.Fatal("Should have failed bad token")
}
@@ -46,6 +48,7 @@ func TestOAuthRevokeAccessToken(t *testing.T) {
func TestOAuthDeleteApp(t *testing.T) {
th := Setup()
+ defer th.TearDown()
oldSetting := utils.Cfg.ServiceSettings.EnableOAuthServiceProvider
defer func() {