Skip to content

Commit

Permalink
line endings in windows :(
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-burt committed Sep 5, 2024
1 parent 919cf44 commit e16d5ed
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions vm/internal/ds/helm3/helm3_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (
"io/ioutil"
"net/url"
"path/filepath"
"strings"
"testing"
"time"

Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit e16d5ed

Please sign in to comment.