Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anish authored and anish committed Feb 21, 2024
1 parent 606200f commit 61dab61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/bounty_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ func TestCreateOrEditBounty(t *testing.T) {
mockDb.On("GetBounty", uint(1)).Return(existingBounty).Once()
mockDb.On("UserHasManageBountyRoles", "test-key", mockOrg.Uuid).Return(true).Once()
mockDb.On("CreateOrEditBounty", mock.MatchedBy(func(b db.Bounty) bool {
return b.Created == now && b.Updated.UnixMilli() != now
return b.Created == now
})).Return(updatedBounty, nil).Once()

body, _ := json.Marshal(updatedBounty)
Expand Down

0 comments on commit 61dab61

Please sign in to comment.