Skip to content

Commit

Permalink
test: fix Windows path in TestCmdAddonComplex (ddev#6585)
Browse files Browse the repository at this point in the history
  • Loading branch information
stasadev authored Oct 6, 2024
1 parent 66d5803 commit 528a0b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/ddev/cmd/addon-get_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ func TestCmdAddonComplex(t *testing.T) {
require.NoError(t, err, "stat of no-ddev-generated.txt failed")
assert.True(info.Size() == 0)

assert.Contains(out, "👍 extra/has-ddev-generated.txt")
assert.NotContains(out, "👍 extra/no-ddev-generated.txt")
assert.Regexp(regexp.MustCompile(`NOT overwriting [^ ]*`+"extra/no-ddev-generated.txt"), out)
assert.Contains(out, fmt.Sprintf("👍 %s", filepath.Join("extra", "has-ddev-generated.txt")))
assert.NotContains(out, fmt.Sprintf("👍 %s", filepath.Join("extra", "no-ddev-generated.txt")))
assert.Regexp(regexp.MustCompile(fmt.Sprintf(`NOT overwriting [^ ]*%s`, regexp.QuoteMeta(filepath.Join("extra", "no-ddev-generated.txt")))), out)
}

// TestCmdAddonDependencies tests the dependency behavior is correct
Expand Down

0 comments on commit 528a0b0

Please sign in to comment.