Skip to content

Commit

Permalink
fix unit tests (#4265)
Browse files Browse the repository at this point in the history
Signed-off-by: squiishyy <[email protected]>
  • Loading branch information
squiishyy authored Oct 19, 2023
1 parent 9af6d84 commit e1c05db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flyteadmin/auth/authzserver/metadata_provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func TestSendAndRetryHttpRequest(t *testing.T) {
retryAttempts := 5
totalAttempts := retryAttempts + 1 // 1 for the initial try

resp, err := sendAndRetryHttpRequest(context.Background(), server.Client(), server.URL, retryAttempts, 0 /* for testing */)
resp, err := sendAndRetryHTTPRequest(context.Background(), server.Client(), server.URL, retryAttempts, 0 /* for testing */)
assert.Error(t, err)
assert.Equal(t, oauthMetadataFailureErrorMessage, err.Error())
assert.Nil(t, resp)
Expand Down Expand Up @@ -162,7 +162,7 @@ func TestSendAndRetryHttpRequest(t *testing.T) {
retryAttempts := 5
expectedRequestAttempts := 3

resp, err := sendAndRetryHttpRequest(context.Background(), server.Client(), server.URL, retryAttempts, 0 /* for testing */)
resp, err := sendAndRetryHTTPRequest(context.Background(), server.Client(), server.URL, retryAttempts, 0 /* for testing */)
assert.NoError(t, err)
assert.NotNil(t, resp)
assert.Equal(t, 200, resp.StatusCode)
Expand All @@ -186,7 +186,7 @@ func TestSendAndRetryHttpRequest(t *testing.T) {
retryAttempts := 5
expectedRequestAttempts := 0

resp, err := sendAndRetryHttpRequest(context.Background(), server.Client(), server.URL, retryAttempts, 0 /* for testing */)
resp, err := sendAndRetryHTTPRequest(context.Background(), server.Client(), server.URL, retryAttempts, 0 /* for testing */)
assert.NoError(t, err)
assert.NotNil(t, resp)
assert.Equal(t, 200, resp.StatusCode)
Expand Down

0 comments on commit e1c05db

Please sign in to comment.