You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 30, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: pkg/clog/clog_test.go
+4-4
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ func TestError(t *testing.T) {
25
25
output, err:=ioutil.ReadAll(&buf)
26
26
assert.Success(t, "read all stderr output", err)
27
27
28
-
assert.Equal(t, "output is as expected", "error: fake error\n\n", string(output))
28
+
assert.Equal(t, "output is as expected", "error: fake error\r\n\n", string(output))
29
29
})
30
30
31
31
t.Run("plain-error", func(t*testing.T) {
@@ -41,7 +41,7 @@ func TestError(t *testing.T) {
41
41
output, err:=ioutil.ReadAll(&buf)
42
42
assert.Success(t, "read all stderr output", err)
43
43
44
-
assert.Equal(t, "output is as expected", "fatal: wrap 1: base error\n\n", string(output))
44
+
assert.Equal(t, "output is as expected", "fatal: wrap 1: base error\r\n\n", string(output))
45
45
})
46
46
47
47
t.Run("message", func(t*testing.T) {
@@ -58,7 +58,7 @@ func TestError(t *testing.T) {
58
58
output, err:=ioutil.ReadAll(&buf)
59
59
assert.Success(t, "read all stderr output", err)
60
60
61
-
assert.Equal(t, "output is as expected", f.level+": testing\n | hint: maybe do \"this\"\n | \n | cause: what happened was \"this\"\n", string(output))
61
+
assert.Equal(t, "output is as expected", f.level+": testing\r\n | hint: maybe do \"this\"\r\n | \r\n | cause: what happened was \"this\"\r\n", string(output))
62
62
}
63
63
})
64
64
@@ -78,7 +78,7 @@ func TestError(t *testing.T) {
78
78
79
79
assert.Equal(t,
80
80
"output is as expected",
81
-
"error: fake header\n | next line\n | \n | tip: content of fake tip\n\n",
81
+
"error: fake header\r\n | next line\r\n | \r\n | tip: content of fake tip\r\n\n",
0 commit comments