From 33f8106fb42c62d0fa147d806087355747f99d52 Mon Sep 17 00:00:00 2001
From: ko_oler <kooler89@gmail.com>
Date: Tue, 2 Apr 2024 14:40:29 +0300
Subject: [PATCH] fix linter

---
 zap/field_test.go | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/zap/field_test.go b/zap/field_test.go
index d2559d5e..46c4ee50 100644
--- a/zap/field_test.go
+++ b/zap/field_test.go
@@ -139,10 +139,10 @@ func TestCaller(t *testing.T) {
 		field zap.Field
 		want  zap.Field
 	}{
-		{name: "system object", field: Caller(nil, WithObject(user)), want: zap.Reflect("caller", oid)},
-		{name: "object id", field: Caller(nil, WithObject(userId)), want: zap.Reflect("caller", oid)},
-		{name: "string", field: Caller(nil, WithObject(oid.String())), want: zap.Reflect("caller", oid)},
-		{name: "invalid", field: Caller(nil), want: zap.Reflect("caller", (*id.ObjectId)(nil))},
+		{name: "system object", field: Caller(context.TODO(), WithObject(user)), want: zap.Reflect("caller", oid)},
+		{name: "object id", field: Caller(context.TODO(), WithObject(userId)), want: zap.Reflect("caller", oid)},
+		{name: "string", field: Caller(context.TODO(), WithObject(oid.String())), want: zap.Reflect("caller", oid)},
+		{name: "invalid", field: Caller(context.TODO()), want: zap.Reflect("caller", (*id.ObjectId)(nil))},
 		{name: "context", field: Caller(ctx), want: zap.Reflect("caller", id.MustObjectId(auth.GetPrincipal(ctx)))},
 		{name: "invalid context", field: Caller(context.TODO()), want: zap.Reflect("caller", (*id.ObjectId)(nil))},
 	}
-- 
GitLab