From a902e13c65981b594fa948348b41b84715c9153d Mon Sep 17 00:00:00 2001 From: "Claire.Nicholas" Date: Fri, 19 Jan 2024 11:36:36 -0600 Subject: [PATCH] fix: fixing tests --- library/events_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/library/events_test.go b/library/events_test.go index ad1125f1..a26cc4dc 100644 --- a/library/events_test.go +++ b/library/events_test.go @@ -155,7 +155,6 @@ func TestLibrary_Events_NewEventsFromMask_ToDatabase(t *testing.T) { constants.AllowPushBranch | constants.AllowPushTag | constants.AllowPushDeleteBranch | - constants.AllowPushDeleteTag | constants.AllowPullOpen | constants.AllowPullSync | constants.AllowPullReopen | @@ -164,7 +163,8 @@ func TestLibrary_Events_NewEventsFromMask_ToDatabase(t *testing.T) { ) maskTwo := int64( - constants.AllowPullEdit | + constants.AllowPushDeleteTag | + constants.AllowPullEdit | constants.AllowCommentEdit | constants.AllowDeployCreate, ) @@ -242,7 +242,7 @@ func testEvents() (*Events, *Events) { Branch: &tBool, Tag: &tBool, DeleteBranch: &tBool, - DeleteTag: &tBool, + DeleteTag: &fBool, }, PullRequest: &actions.Pull{ Opened: &tBool, @@ -267,7 +267,7 @@ func testEvents() (*Events, *Events) { Branch: &fBool, Tag: &fBool, DeleteBranch: &fBool, - DeleteTag: &fBool, + DeleteTag: &tBool, }, PullRequest: &actions.Pull{ Opened: &fBool,