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()