diff options
Diffstat (limited to 'api/team_test.go')
-rw-r--r-- | api/team_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/api/team_test.go b/api/team_test.go index a58260fd2..30952b4d8 100644 --- a/api/team_test.go +++ b/api/team_test.go @@ -252,7 +252,7 @@ func TestGetAllTeams(t *testing.T) { c := &Context{} c.RequestId = model.NewId() c.IpAddress = "cmd_line" - UpdateRoles(c, user, model.ROLE_SYSTEM_ADMIN) + UpdateUserRoles(c, user, model.ROLE_SYSTEM_ADMIN) Client.Login(user.Email, "pwd") Client.SetTeamId(team.Id) @@ -301,7 +301,7 @@ func TestGetAllTeamListings(t *testing.T) { c := &Context{} c.RequestId = model.NewId() c.IpAddress = "cmd_line" - UpdateRoles(c, user, model.ROLE_SYSTEM_ADMIN) + UpdateUserRoles(c, user, model.ROLE_SYSTEM_ADMIN) Client.Login(user.Email, "pwd") Client.SetTeamId(team.Id) |