diff --git a/server/command_test.go b/server/command_test.go index 4dfbcbbd6..b6c7f0f81 100644 --- a/server/command_test.go +++ b/server/command_test.go @@ -252,7 +252,7 @@ func TestListWebhookCommand(t *testing.T) { func getTestPlugin(t *testing.T, mockCtrl *gomock.Controller, hooks []*gitlab.WebhookInfo, mattermostURL string, projectHookErr error, getProjectErr error, mockGitlab, noAccess bool) *Plugin { p := new(Plugin) - accessLevel := gitLabAPI.OwnerPermission + accessLevel := gitLabAPI.OwnerPermissions if noAccess { accessLevel = gitLabAPI.GuestPermissions }