Skip to content

Commit

Permalink
use wd.SetReattachInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
kmoe committed Sep 7, 2020
1 parent 5f973e1 commit 403ab69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helper/resource/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func runProviderCommand(t testing.T, f func() error, wd *tftest.WorkingDir, fact
if err != nil {
return err
}
wd.Setenv("TF_REATTACH_PROVIDERS", string(reattachStr))
wd.SetReattachInfo(string(reattachStr))

// ok, let's call whatever Terraform command the test was trying to
// call, now that we know it'll attach back to those servers we just
Expand All @@ -146,7 +146,7 @@ func runProviderCommand(t testing.T, f func() error, wd *tftest.WorkingDir, fact
// longer valid. In theory it should be overwritten in the next call,
// but just to avoid any confusing bug reports, let's just unset the
// environment variable altogether.
wd.Unsetenv("TF_REATTACH_PROVIDERS")
wd.UnsetReattachInfo()

// return any error returned from the orchestration code running
// Terraform commands
Expand Down

0 comments on commit 403ab69

Please sign in to comment.