diff --git a/vm/internal/ds/helm3/helm3_test.go b/vm/internal/ds/helm3/helm3_test.go index 519d56e..a773be0 100644 --- a/vm/internal/ds/helm3/helm3_test.go +++ b/vm/internal/ds/helm3/helm3_test.go @@ -21,6 +21,7 @@ import ( "io/ioutil" "net/url" "path/filepath" + "strings" "testing" "time" @@ -165,14 +166,10 @@ func TestRunTemplate(t *testing.T) { require.NoError(t, err) filePath := filepath.Join("testdata", "apache.json") fileContent, err := ioutil.ReadFile(filePath) - t.Log(string(b)) - templatedStr, ok := templated.(string) - require.NoError(t, ok) - templatedUnixStr, ok := b.(string) - require.NoError(t, ok) - templatedUnixStr := strings.ReplaceAll(templatedStr, "\r\n", "\n") + templatedStr := string(b) + templatedUnixStr := strings.ReplaceAll(templatedStr, "\r\n", "\n") fileContentStr := string(fileContent) - fileContentUnixStr := strings.ReplaceAll(fileContentUnixStr, "\r\n", "\n") + fileContentUnixStr := strings.ReplaceAll(fileContentStr, "\r\n", "\n") require.NoError(t, err) require.Equal(t, templatedUnixStr, fileContentUnixStr) }