Skip to content
This repository was archived by the owner on Dec 23, 2024. It is now read-only.

Commit 2e3e7d8

Browse files
committed
updated testing timestamp pattern
1 parent 6b95bf8 commit 2e3e7d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shims/zerolog/zerolog_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ var _ = Describe("zerolog logger", func() {
163163
os.Stdout = old
164164

165165
out := <-outC
166-
Expect(out).To(MatchRegexp(`{"level":"debug","time":"\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}-\d{2}:\d{2}Z?","message":"i am default"}`))
166+
Expect(out).To(MatchRegexp(`{"level":"debug","time":"\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z?(-\d{2}:\d{2})?","message":"i am default"}`))
167167
})
168168
})
169169
Context("fields", func() {

0 commit comments

Comments
 (0)