Skip to content

Commit

Permalink
test fix: revert me soon
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonc committed Jul 6, 2022
1 parent 0453163 commit adb50b7
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions oauth_client_integration_test.go
Expand Up @@ -5,6 +5,7 @@ package tfe

import (
"context"
"fmt"
"os"
"testing"

Expand Down Expand Up @@ -247,8 +248,14 @@ func TestOAuthClientsDelete(t *testing.T) {
err := client.OAuthClients.Delete(ctx, ocTest.ID)
require.NoError(t, err)

// Try loading the OAuth client - it should fail.
_, err = client.OAuthClients.Read(ctx, ocTest.ID)
_, err = retry(func() (interface{}, error) {
c, err := client.OAuthClients.Read(ctx, ocTest.ID)
if err != ErrResourceNotFound {
return nil, fmt.Errorf("expected %s, but err was %s", ErrResourceNotFound, err)
}
return c, err
})

assert.Equal(t, err, ErrResourceNotFound)
})

Expand Down

0 comments on commit adb50b7

Please sign in to comment.