metadata: fix for grpc case (#370)
All checks were successful
test / test (push) Successful in 42s

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
Reviewed-on: #370
This commit is contained in:
2024-12-09 19:06:49 +03:00
parent 38c5fe8b5a
commit 2b62ad04f2
2 changed files with 15 additions and 0 deletions

View File

@@ -5,6 +5,15 @@ import (
"testing"
)
func TestLowercase(t *testing.T) {
md := New(1)
md["x-request-id"] = "12345"
v, ok := md.Get("X-Request-Id")
if !ok || v == "" {
t.Fatalf("metadata invalid %#+v", md)
}
}
func TestMultipleUsage(t *testing.T) {
ctx := context.TODO()
md := New(0)