add copy metadata from grpc-go #386

Merged
vtolstov merged 25 commits from devstigneev/micro:v3 into v4 2025-01-25 15:57:56 +03:00
Showing only changes of commit bb5e18e7a5 - Show all commits

View File

@@ -32,7 +32,8 @@ func TestTime(t *testing.T) {
l.Error(ctx, "msg1", errors.New("err"))
if !bytes.Contains(buf.Bytes(), []byte(`timestamp=1970-01-01T03:00:00.000000000+03:00`)) {
if !bytes.Contains(buf.Bytes(), []byte(`timestamp=1970-01-01T03:00:00.000000000+03:00`)) &&
!bytes.Contains(buf.Bytes(), []byte(`timestamp=1970-01-01T00:00:00.000000000Z`)) {
t.Fatalf("logger error not works, buf contains: %s", buf.Bytes())
}
}