Skip to content

Commit

Permalink
Add comment back in
Browse files Browse the repository at this point in the history
  • Loading branch information
mbfrahry committed Aug 5, 2024
1 parent f2583c8 commit 8b68bdd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/acceptance/testcase.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ var refreshStep = TestStep{
func (td TestData) ResourceTest(t *testing.T, testResource types.TestResource, steps []TestStep) {
newSteps := make([]TestStep, 0)
for index, step := range steps {
// Testing framework as of 1.6.0 no longer auto-refreshes state, so adding it back in here for all steps that update
// the config rather than having to modify 1000's of tests individually to add a refresh-only step
if !step.ImportState && step.Config == "" && step.ConfigDirectory == nil && step.ConfigFile == nil && index != 0 {
step.RefreshState = true
}
Expand Down

0 comments on commit 8b68bdd

Please sign in to comment.