From 3072ceb571f593157e862c3c42c6ca3db4e4cc00 Mon Sep 17 00:00:00 2001 From: Vayras <89837102+Vayras@users.noreply.github.com> Date: Thu, 23 May 2024 02:14:18 +0530 Subject: [PATCH] test fix --- handlers/bounty_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/handlers/bounty_test.go b/handlers/bounty_test.go index bfed8dc93..ac800a8a8 100644 --- a/handlers/bounty_test.go +++ b/handlers/bounty_test.go @@ -106,6 +106,8 @@ func TestCreateOrEditBounty(t *testing.T) { rr := httptest.NewRecorder() handler := http.HandlerFunc(bHandler.CreateOrEditBounty) + phaseUuid := "08d7e988-5554-41b5-8b2f-1cdb79d84e29" + phasePriority := 1 existingBounty := db.NewBounty{ ID: 1, Type: "coding", @@ -113,6 +115,8 @@ func TestCreateOrEditBounty(t *testing.T) { Description: "first bounty description", WorkspaceUuid: "work-1", Assignee: "user1", + PhaseUuid: &phaseUuid, + PhasePriority: &phasePriority, } mockDb.On("UpdateBountyBoolColumn", mock.AnythingOfType("db.NewBounty"), "show").Return(existingBounty) mockDb.On("GetBounty", uint(1)).Return(existingBounty).Once()