Skip to content

Commit

Permalink
fix windows
Browse files Browse the repository at this point in the history
  • Loading branch information
emosbaugh committed Oct 16, 2024
1 parent 6d2552c commit fbfeaba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/applier/manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"context"
"embed"
"os"
"path"
"path/filepath"
"sync"
"testing"
Expand Down Expand Up @@ -184,14 +185,13 @@ func waitFor(t *testing.T, interval, timeout time.Duration, fn wait.ConditionWit
}

func writeStack(t *testing.T, dst string, src string) {
dstStackDir := filepath.Join(dst, filepath.Base(src))
dstStackDir := filepath.Join(dst, path.Base(src))
err := os.MkdirAll(dstStackDir, 0755)
require.NoError(t, err)
entries, err := managerTestData.ReadDir(src)
require.NoError(t, err)
for _, entry := range entries {
src := filepath.Join(src, entry.Name())
data, err := managerTestData.ReadFile(src)
data, err := managerTestData.ReadFile(path.Join(src, entry.Name()))
require.NoError(t, err)
dst := filepath.Join(dstStackDir, entry.Name())
t.Logf("writing file %s", dst)
Expand Down

0 comments on commit fbfeaba

Please sign in to comment.