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.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/oauth_test.go b/app/oauth_test.go
index d5fbe8f5e..b964b377d 100644
--- a/app/oauth_test.go
+++ b/app/oauth_test.go
@@ -21,7 +21,7 @@ func TestOAuthRevokeAccessToken(t *testing.T) {
session.CreateAt = model.GetMillis()
session.UserId = model.NewId()
session.Token = model.NewId()
- session.Roles = model.ROLE_SYSTEM_USER.Id
+ session.Roles = model.SYSTEM_USER_ROLE_ID
session.SetExpireInDays(1)
session, _ = th.App.CreateSession(session)
@@ -71,7 +71,7 @@ func TestOAuthDeleteApp(t *testing.T) {
session.CreateAt = model.GetMillis()
session.UserId = model.NewId()
session.Token = model.NewId()
- session.Roles = model.ROLE_SYSTEM_USER.Id
+ session.Roles = model.SYSTEM_USER_ROLE_ID
session.IsOAuth = true
session.SetExpireInDays(1)