Skip to content

Commit

Permalink
Merge pull request #435 from hashicorp/kisunji-patch-1
Browse files Browse the repository at this point in the history
Check error before RetryServerErrors
  • Loading branch information
brandonc committed Jul 1, 2022
2 parents 0f0b469 + 20e6306 commit 2a4cc50
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions helper_test.go
Expand Up @@ -53,8 +53,9 @@ type updateFeatureSetOptions struct {
}

func testClient(t *testing.T) *Client {
client, err := NewClient(nil)
client.RetryServerErrors(true) // because occasionally we get a 500 internal when deleting an organization's workspace
client, err := NewClient(&Config{
RetryServerErrors: true,
})
if err != nil {
t.Fatal(err)
}
Expand Down

0 comments on commit 2a4cc50

Please sign in to comment.