diff --git a/cmd/ddev/cmd/addon-get_test.go b/cmd/ddev/cmd/addon-get_test.go index dd1873d78de..5f8e1ddc0b1 100644 --- a/cmd/ddev/cmd/addon-get_test.go +++ b/cmd/ddev/cmd/addon-get_test.go @@ -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