Skip to content

Commit 32ce177

Browse files
authored
fix(ci): windows integration tests (#1427)
* fix(ci): windows integration tests Signed-off-by: Salim Afiune Maya <[email protected]> * chore: run on windows Signed-off-by: Salim Afiune Maya <[email protected]> * fix(ci): more windows integration tests Signed-off-by: Salim Afiune Maya <[email protected]> * Revert "chore: run on windows" This reverts commit 7890730. --------- Signed-off-by: Salim Afiune Maya <[email protected]>
1 parent e8d0df9 commit 32ce177

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

integration/help_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,12 @@ func TestHelpAll(t *testing.T) {
8484
if runtime.GOOS == "windows" {
8585
canon, err := helpCanon.ReadFile(windowsFilePath)
8686
if err == nil {
87-
assert.Equal(t, string(canon), out.String())
87+
assert.Equal(t, strings.ReplaceAll(string(canon), "\r", ""), out.String())
8888
return
8989
}
9090
}
9191
canon, _ := helpCanon.ReadFile(filePath)
92-
assert.Equal(t, string(canon), out.String())
92+
assert.Equal(t, strings.ReplaceAll(string(canon), "\r", ""), out.String())
9393
})
9494
}
9595
}
@@ -129,7 +129,7 @@ func TestNoCommandProvided(t *testing.T) {
129129
out, err, exitcode := LaceworkCLI()
130130
canon, _ := helpCanon.ReadFile("test_resources/help/no-command-provided")
131131
assert.Equal(t,
132-
string(canon),
132+
strings.ReplaceAll(string(canon), "\r", ""),
133133
out.String(),
134134
"the main help message changed, please update")
135135
assert.Empty(t,

0 commit comments

Comments
 (0)