Fix logging when first arg is a context.Context without a logger

This commit is contained in:
Deluan
2020-04-26 19:33:57 -04:00
parent b44218fdcc
commit 46f1b33812
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -41,8 +41,8 @@ var _ = Describe("Logger", func() {
Expect(hook.LastEntry().Data).To(BeEmpty())
})
XIt("Empty context", func() {
Error(context.Background(), "Simple Message")
It("Empty context", func() {
Error(context.TODO(), "Simple Message")
Expect(hook.LastEntry().Message).To(Equal("Simple Message"))
Expect(hook.LastEntry().Data).To(BeEmpty())
})