1
0
Fork 0
This commit is contained in:
Josh Soref 2022-02-21 06:40:09 -05:00 committed by GitHub
parent ce851a5929
commit 819de02101
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 51 additions and 51 deletions

View file

@ -104,11 +104,11 @@ func TestRetry(t *testing.T) {
t.Run(test.desc, func(t *testing.T) {
t.Parallel()
retryAttemps := 0
retryAttempts := 0
next := http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) {
retryAttemps++
retryAttempts++
if retryAttemps > test.amountFaultyEndpoints {
if retryAttempts > test.amountFaultyEndpoints {
// calls WroteHeaders on httptrace.
_ = r.Write(io.Discard)
@ -275,11 +275,11 @@ func TestRetryWebsocket(t *testing.T) {
t.Run(test.desc, func(t *testing.T) {
t.Parallel()
retryAttemps := 0
retryAttempts := 0
next := http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) {
retryAttemps++
retryAttempts++
if retryAttemps > test.amountFaultyEndpoints {
if retryAttempts > test.amountFaultyEndpoints {
upgrader := websocket.Upgrader{}
_, err := upgrader.Upgrade(rw, r, nil)
if err != nil {