Merge pull request #25263 from hashicorp/alisdair/fix-test-cleanup

command: Fix test cleanup
This commit is contained in:
Alisdair McDiarmid 2020-06-16 14:24:13 -04:00 committed by GitHub
commit a3231814c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -745,7 +745,10 @@ func TestImport_missingModuleConfig(t *testing.T) {
}
func TestImportModuleVarFile(t *testing.T) {
defer testChdir(t, testFixturePath("import-module-var-file"))()
td := tempDir(t)
copy.CopyDir(testFixturePath("import-module-var-file"), td)
defer os.RemoveAll(td)
defer testChdir(t, td)()
statePath := testTempFile(t)