mirror of
https://github.com/navidrome/navidrome.git
synced 2026-10-18 07:30:29 +00:00
test(log): fix the source line assertion after the import change
Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
parent
1b5c68a203
commit
052be800a7
@ -96,7 +96,7 @@ var _ = Describe("Logger", func() {
|
||||
SetLogSourceLine(true)
|
||||
Error("A crash happened")
|
||||
// NOTE: This assertion breaks if the line number above changes
|
||||
Expect(hook.LastEntry().Data[" source"]).To(ContainSubstring("/log/log_test.go:96"))
|
||||
Expect(hook.LastEntry().Data[" source"]).To(ContainSubstring("/log/log_test.go:97"))
|
||||
Expect(hook.LastEntry().Message).To(Equal("A crash happened"))
|
||||
})
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user