mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-02 16:37:49 +01: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue