Skip to content

Commit

Permalink
Use require.NoError in rate limit test
Browse files Browse the repository at this point in the history
Signed-off-by: Lucas Rodriguez <[email protected]>
  • Loading branch information
lucasrod16 committed Sep 29, 2024
1 parent 3f9cc78 commit a777b38
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions internal/http/ratelimit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,7 @@ func TestRateLimiter(t *testing.T) {
return nil
})
}
if err := g.Wait(); err != nil {
t.Fatal(err)
}

require.NoError(t, g.Wait())
require.Equal(t, 10, successCount, "Expected 10 successful requests")
require.Equal(t, 10, failCount, "Expected 10 failed requests")
}

0 comments on commit a777b38

Please sign in to comment.