Skip to content

Commit

Permalink
fix: Typo
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Paskal <[email protected]>
  • Loading branch information
maksim-paskal committed Dec 19, 2024
1 parent 7b03888 commit 223249c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/webhook/webhook_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
"github.com/stretchr/testify/require"
)

var retryableRequstCount = 0
var retryableRequestCount = 0

var ts = httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
if r.RequestURI == "/-/400" {
Expand All @@ -41,10 +41,10 @@ var ts = httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http
}

if r.RequestURI == "/test-retryable" {
retryableRequstCount++
retryableRequestCount++

// return 500 for first 2 requests
if retryableRequstCount < 3 {
if retryableRequestCount < 3 {
w.WriteHeader(http.StatusInternalServerError)
} else {
_, _ = w.Write([]byte("OK"))
Expand Down Expand Up @@ -260,5 +260,5 @@ func TestWebHook(t *testing.T) { //nolint:funlen,tparallel
}

// Check retryable request counter, 3 requests should be made
require.Equal(t, 3, retryableRequstCount)
require.Equal(t, 3, retryableRequestCount)
}

0 comments on commit 223249c

Please sign in to comment.