aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--commands/comment_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/comment_test.go b/commands/comment_test.go
index 74cfee81..43062ed0 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), strings.ReplaceAll(comment.message, "\r", ""))
+ require.Equal(t, strings.ReplaceAll(string(exp), "\r", ""), strings.ReplaceAll(comment.message, "\r", ""))
}
}