Skip to content

Commit

Permalink
fix: make file deletion os-agnostic
Browse files Browse the repository at this point in the history
Signed-off-by: chjmil <[email protected]>
  • Loading branch information
saschjmil committed Feb 27, 2025
1 parent 6c22abb commit 833ec24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ func initPlanWithVariables(t *testing.T, variables map[string]interface{}) (*ter
// Copy the terraform folder to a temp folder
tempTestFolder := test_structure.CopyTerraformFolderToTemp(t, "../", "")
// Get the path to the parent folder for clean up
tempTestFolderSlice := strings.Split(tempTestFolder, "/")
tempTestFolderPath := strings.Join(tempTestFolderSlice[:len(tempTestFolderSlice)-1], "/")
tempTestFolderSlice := strings.Split(tempTestFolder, string(os.PathSeparator))
tempTestFolderPath := strings.Join(tempTestFolderSlice[:len(tempTestFolderSlice)-1], string(os.PathSeparator))
defer os.RemoveAll(tempTestFolderPath)

// Set up Terraform options
Expand Down

0 comments on commit 833ec24

Please sign in to comment.