Skip to content

Commit ec6347c

Browse files
committed
fix: zapr test
Removing line breaks from messages Signed-off-by: aimuz <[email protected]>
1 parent ef55402 commit ec6347c

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

examples/flushing/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
myfile.log

test/zapr.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -171,22 +171,22 @@ I output.go:<LINE>] "odd WithValues" keyWithoutValue="(MISSING)"
171171

172172
// klog.Info
173173
`I output.go:<LINE>] "helloworld\n"
174-
`: `{"caller":"test/output.go:<LINE>","msg":"helloworld\n","v":0}
174+
`: `{"caller":"test/output.go:<LINE>","msg":"helloworld","v":0}
175175
`,
176176

177177
// klog.Infoln
178178
`I output.go:<LINE>] "hello world\n"
179-
`: `{"caller":"test/output.go:<LINE>","msg":"hello world\n","v":0}
179+
`: `{"caller":"test/output.go:<LINE>","msg":"hello world","v":0}
180180
`,
181181

182182
// klog.Error
183183
`E output.go:<LINE>] "helloworld\n"
184-
`: `{"caller":"test/output.go:<LINE>","msg":"helloworld\n"}
184+
`: `{"caller":"test/output.go:<LINE>","msg":"helloworld"}
185185
`,
186186

187187
// klog.Errorln
188188
`E output.go:<LINE>] "hello world\n"
189-
`: `{"caller":"test/output.go:<LINE>","msg":"hello world\n"}
189+
`: `{"caller":"test/output.go:<LINE>","msg":"hello world"}
190190
`,
191191

192192
// klog.ErrorS
@@ -201,12 +201,12 @@ I output.go:<LINE>] "odd WithValues" keyWithoutValue="(MISSING)"
201201

202202
// klog.V(1).Info
203203
`I output.go:<LINE>] "hellooneworld\n"
204-
`: `{"caller":"test/output.go:<LINE>","msg":"hellooneworld\n","v":1}
204+
`: `{"caller":"test/output.go:<LINE>","msg":"hellooneworld","v":1}
205205
`,
206206

207207
// klog.V(1).Infoln
208208
`I output.go:<LINE>] "hello one world\n"
209-
`: `{"caller":"test/output.go:<LINE>","msg":"hello one world\n","v":1}
209+
`: `{"caller":"test/output.go:<LINE>","msg":"hello one world","v":1}
210210
`,
211211

212212
// klog.V(1).ErrorS

0 commit comments

Comments
 (0)