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

refactor

parent f526180b
No related branches found
No related tags found
No related merge requests found
package zap
import (
"context"
"testing"
"git.perx.ru/perxis/perxis-go/pkg/log"
......@@ -34,7 +33,7 @@ func TestCore_getEntry(t *testing.T) {
Component("Items.Service"),
Event("Items.Create"),
Object("/spaces/WPNN/envs/9VGP/cols/GxNv/items/W0fl"),
CallerFromContext(ContextWithCaller(context.Background(), "/users/PHVz")),
Caller("/users/PHVz"),
Attr("any"),
Tags("tag1", "tag2", "tag3"),
},
......
package zap
import (
"context"
"reflect"
"slices"
"testing"
......@@ -61,7 +60,7 @@ func TestExample(t *testing.T) {
Component("Items.Service"),
Event("Items.Create"),
Object("/spaces/WPNN/envs/9VGP/cols/GxNv/items/W0fl"),
CallerFromContext(ContextWithCaller(context.Background(), "/users/PHVz")),
Caller("/users/PHVz"),
Attr("any"),
Tags("tag1", "tag2", "tag3"),
)
......@@ -70,7 +69,7 @@ func TestExample(t *testing.T) {
Component("Items.Service"),
Event("Items.Update"),
Object("/spaces/WPNN/envs/9VGP/cols/GxNv/items/W0fl/revs/cmV2cw"),
CallerFromContext(ContextWithCaller(context.Background(), "/users/PHVz")),
Caller("/users/PHVz"),
)
err := ws.Stop()
......
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