From 0f885d4fb55d7133f7b4c4fe9b94c14511db673c Mon Sep 17 00:00:00 2001 From: Steve Moyer Date: Tue, 23 Aug 2022 11:02:23 -0400 Subject: [PATCH] fix(850): normalize Windows line endings -> *nix --- commands/comment_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/comment_test.go b/commands/comment_test.go index c2e7cb36ae3451f2f890fec80bdcc277891bad66..74cfee8150277a3ab99f1fe2a34f5e5cbcb82897 100644 --- a/commands/comment_test.go +++ b/commands/comment_test.go @@ -155,6 +155,6 @@ func requireCommentsEqual(t *testing.T, golden string, env *testEnv) { fileName := fmt.Sprintf(goldenFilePatter, golden, i) exp, err := ioutil.ReadFile(fileName) require.NoError(t, err) - require.Equal(t, string(exp), comment.message) + require.Equal(t, string(exp), strings.ReplaceAll(comment.message, "\r", "")) } }