Skip to content

Commit

Permalink
Update pkg/controller/webhook_test.go
Browse files Browse the repository at this point in the history
Co-authored-by: Sanskar Jaiswal <[email protected]>
Signed-off-by: Joey Kwasniewski <[email protected]>
  • Loading branch information
Kwasniewski and aryan9600 authored Nov 16, 2023
1 parent 4a36533 commit d5f4bb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/webhook_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ func TestCallWebhook_Retries(t *testing.T) {
retries := 1
failures := 0
ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
if failures <= retries-1 {
if failures < retries {
w.WriteHeader(http.StatusInternalServerError)
failures++
} else {
Expand Down

0 comments on commit d5f4bb5

Please sign in to comment.