fix test
This commit is contained in:
parent
3d2005833b
commit
a0633c39ec
@ -3,10 +3,11 @@ package metric
|
||||
import (
|
||||
"context"
|
||||
"github.com/anytypeio/any-sync/app/logger"
|
||||
"go.uber.org/zap"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestLog(t *testing.T) {
|
||||
m := &metric{rpcLog: logger.NewNamed("rpcLog")}
|
||||
m := &metric{rpcLog: logger.NewNamed("rpcLog"), appField: zap.String("appName", "test")}
|
||||
m.RequestLog(context.Background(), "rpc")
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user