summaryrefslogtreecommitdiffstats
path: root/api/user_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'api/user_test.go')
-rw-r--r--api/user_test.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/api/user_test.go b/api/user_test.go
index 13ae45f6e..85af7e598 100644
--- a/api/user_test.go
+++ b/api/user_test.go
@@ -523,10 +523,7 @@ func TestGetUser(t *testing.T) {
t.Fatal("shouldn't have accss")
}
- c := &Context{}
- c.RequestId = model.NewId()
- c.IpAddress = "cmd_line"
- UpdateUserRoles(c, ruser.Data.(*model.User), model.ROLE_SYSTEM_ADMIN.Id)
+ UpdateUserRoles(ruser.Data.(*model.User), model.ROLE_SYSTEM_ADMIN.Id)
Client.Login(user.Email, "passwd1")
@@ -1236,7 +1233,7 @@ func TestUserPermDelete(t *testing.T) {
c.RequestId = model.NewId()
c.IpAddress = "test"
- err := PermanentDeleteUser(c, user1)
+ err := PermanentDeleteUser(user1)
if err != nil {
t.Fatal(err)
}