Skip to content

Commit

Permalink
fix uni test
Browse files Browse the repository at this point in the history
  • Loading branch information
aliraza556 committed Nov 7, 2024
1 parent 9cec431 commit 096fc66
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions handlers/bounty_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1202,6 +1202,8 @@ func TestGetAllBounties(t *testing.T) {
t.Run("Should successfully return all bounties", func(t *testing.T) {
now := time.Now().Unix()

db.TestDB.DeleteAllBounties()

// Create a public bounty
publicBounty := db.NewBounty{
Type: "coding",
Expand Down Expand Up @@ -1249,6 +1251,8 @@ func TestGetAllBounties(t *testing.T) {
t.Run("Should successfully return only public bounties", func(t *testing.T) {
now := time.Now().Unix()

db.TestDB.DeleteAllBounties()

// Create a public bounty
publicBounty := db.NewBounty{
Type: "coding",
Expand Down

0 comments on commit 096fc66

Please sign in to comment.