Skip to content
Snippets Groups Projects
Commit cc8b15e7 authored by Semyon Krestyaninov's avatar Semyon Krestyaninov
Browse files

refactor

parent f6d4e205
No related branches found
No related tags found
No related merge requests found
......@@ -16,8 +16,9 @@ func TestFilterCore_With(t *testing.T) {
err := core.With([]zapcore.Field{zap.String("k", "v")}).Write(zapcore.Entry{Message: "msg"}, nil)
require.NoError(t, err)
require.Len(t, logs.All(), 1)
require.Len(t, logs.All()[0].Context, 1)
entries := logs.All()
require.Len(t, entries, 1)
require.Len(t, entries[0].Context, 1)
}
func TestFilterCore_Write(t *testing.T) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment