Skip to content

Commit

Permalink
Fix bidi stream test
Browse files Browse the repository at this point in the history
  • Loading branch information
emcfarlane committed Mar 18, 2024
1 parent 971bfec commit d5fc4fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions connect_ext_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit d5fc4fc

Please sign in to comment.