From d5fc4fc38b419e49998de7f662fa402ebfc3e6a9 Mon Sep 17 00:00:00 2001 From: Edward McFarlane Date: Mon, 18 Mar 2024 14:14:25 -0400 Subject: [PATCH] Fix bidi stream test --- connect_ext_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/connect_ext_test.go b/connect_ext_test.go index 526095d6..862d097e 100644 --- a/connect_ext_test.go +++ b/connect_ext_test.go @@ -552,7 +552,7 @@ func TestErrorHeaderPropagation(t *testing.T) { if assert.Nil(t, derr) { err.AddDetail(errDetail) } - err.Meta().Set("Content-Length", "1337") + err.Meta().Set("Content-Length", "1234") err.Meta().Set("Content-Type", "application/xml") err.Meta().Set("Accept-Encoding", "bogus") err.Meta().Set("Date", "Thu, 01 Jan 1970 00:00:00 GMT") @@ -618,7 +618,7 @@ func TestErrorHeaderPropagation(t *testing.T) { t.Run("bidi", func(t *testing.T) { stream := client.CumSum(context.Background()) stream.RequestHeader().Set("X-Test", t.Name()) - if err := stream.Send(&pingv1.CumSumRequest{Number: 42}); err != nil { + if err := stream.Send(nil); err != nil { t.Fatal(err) } _, err := stream.Receive()