Skip to content

Commit

Permalink
debug windows
Browse files Browse the repository at this point in the history
Signed-off-by: Carolyn Van Slyck <me@carolynvanslyck.com>
  • Loading branch information
carolynvs committed Jul 16, 2022
1 parent dbd6e17 commit c923857
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions shx/move_test.go
Expand Up @@ -21,7 +21,7 @@ func TestMove(t *testing.T) {
defer resetTestdata(t)

// Make the temp directory on the same physical drive, os.Rename doesn't work across drives and /tmp may be on another drive
tmp, err := ioutil.TempDir("testdata", "magex")
tmp, err := os.MkdirTemp("testdata", "magex")
require.NoError(t, err, "could not create temp directory for test")
defer os.RemoveAll(tmp)

Expand All @@ -40,7 +40,7 @@ func TestMove(t *testing.T) {
defer resetTestdata(t)

// Make the temp directory on the same physical drive, os.Rename doesn't work across drives and /tmp may be on another drive
tmp, err := ioutil.TempDir("", "magex")
tmp, err := os.MkdirTemp("testdata", "magex")
require.NoError(t, err, "could not create temp directory for test")
defer os.RemoveAll(tmp)

Expand All @@ -62,7 +62,7 @@ func TestMove(t *testing.T) {
defer resetTestdata(t)

// Make the temp directory on the same physical drive, os.Rename doesn't work across drives and /tmp may be on another drive
tmp, err := ioutil.TempDir("", "magex")
tmp, err := os.MkdirTemp("testdata", "magex")
require.NoError(t, err, "could not create temp directory for test")
defer os.RemoveAll(tmp)

Expand All @@ -79,7 +79,7 @@ func TestMove(t *testing.T) {
defer resetTestdata(t)

// Make the temp directory on the same physical drive, os.Rename doesn't work across drives and /tmp may be on another drive
tmp, err := ioutil.TempDir("", "magex")
tmp, err := os.MkdirTemp("testdata", "magex")
require.NoError(t, err, "could not create temp directory for test")
defer os.RemoveAll(tmp)

Expand All @@ -91,7 +91,7 @@ func TestMove(t *testing.T) {
defer resetTestdata(t)

// Make the temp directory on the same physical drive, os.Rename doesn't work across drives and /tmp may be on another drive
tmp, err := ioutil.TempDir("", "magex")
tmp, err := os.MkdirTemp("testdata", "magex")
require.NoError(t, err, "could not create temp directory for test")
defer os.RemoveAll(tmp)

Expand All @@ -104,7 +104,7 @@ func TestMove(t *testing.T) {
defer resetTestdata(t)

// Make the temp directory on the same physical drive, os.Rename doesn't work across drives and /tmp may be on another drive
tmp, err := ioutil.TempDir("", "magex")
tmp, err := os.MkdirTemp("testdata", "magex")
require.NoError(t, err, "could not create temp directory for test")
defer os.RemoveAll(tmp)

Expand All @@ -124,7 +124,7 @@ func TestMove(t *testing.T) {
defer resetTestdata(t)

// Make the temp directory on the same physical drive, os.Rename doesn't work across drives and /tmp may be on another drive
tmp, err := ioutil.TempDir("", "magex")
tmp, err := os.MkdirTemp("testdata", "magex")
require.NoError(t, err, "could not create temp directory for test")
defer os.RemoveAll(tmp)

Expand All @@ -146,7 +146,7 @@ func TestMove(t *testing.T) {
defer resetTestdata(t)

// Make the temp directory on the same physical drive, os.Rename doesn't work across drives and /tmp may be on another drive
tmp, err := ioutil.TempDir("", "magex")
tmp, err := os.MkdirTemp("testdata", "magex")
require.NoError(t, err, "could not create temp directory for test")
defer os.RemoveAll(tmp)

Expand All @@ -160,7 +160,7 @@ func TestMove(t *testing.T) {
defer resetTestdata(t)

// Make the temp directory on the same physical drive, os.Rename doesn't work across drives and /tmp may be on another drive
tmp, err := ioutil.TempDir("", "magex")
tmp, err := os.MkdirTemp("testdata", "magex")
require.NoError(t, err, "could not create temp directory for test")
defer os.RemoveAll(tmp)

Expand All @@ -187,7 +187,7 @@ func TestMove_MoveNoOverwrite(t *testing.T) {
defer resetTestdata(t)

// Make the temp directory on the same physical drive, os.Rename doesn't work across drives and /tmp may be on another drive
tmp, err := ioutil.TempDir("", "magex")
tmp, err := os.MkdirTemp("testdata", "magex")
require.NoError(t, err, "could not create temp directory for test")
defer os.RemoveAll(tmp)

Expand Down

0 comments on commit c923857

Please sign in to comment.