Skip to content

Commit

Permalink
fix(tests): hard link fails when /tmp is separate partition
Browse files Browse the repository at this point in the history
  • Loading branch information
leg100 committed Aug 13, 2023
1 parent 799ed25 commit cfc7aaa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/integration/run_cancel_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ func TestIntegration_RunCancel(t *testing.T) {
dst := filepath.Join(bins, workspace.DefaultTerraformVersion, "terraform")
err := os.MkdirAll(filepath.Dir(dst), 0o755)
require.NoError(t, err)
err = os.Link("testdata/cancelme", dst)
wd, err := os.Getwd()
require.NoError(t, err)
err = os.Symlink(filepath.Join(wd, "testdata/cancelme"), dst)
require.NoError(t, err)

// run a temporary http server as a means of communicating with the fake
Expand Down

0 comments on commit cfc7aaa

Please # to comment.