Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

server: add connection to transport context #4649

Merged
merged 7 commits into from
Aug 10, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Nit
  • Loading branch information
zasweq committed Aug 9, 2021
commit 886fbcfc7b23608d6e5aabdd4152f91df29ee126
6 changes: 3 additions & 3 deletions test/end2end_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7788,7 +7788,7 @@ func (s) TestUnaryServerInterceptorGetsConnection(t *testing.T) {
defer cancel()

if _, err := ss.Client.EmptyCall(ctx, &testpb.Empty{}); status.Code(err) != codes.OK {
t.Fatalf("%v.EmptyCall(_, _) = _, %v, want _, error code %s", ss.Client, err, codes.OK)
t.Fatalf("ss.Client.EmptyCall(_, _) = _, %v, want _, error code %s", err, codes.OK)
}
}

Expand All @@ -7814,9 +7814,9 @@ func (s) TestStreamingServerInterceptorGetsConnection(t *testing.T) {

s, err := ss.Client.StreamingOutputCall(ctx, &testpb.StreamingOutputCallRequest{})
if err != nil {
t.Fatalf("%v.StreamingOutputCall(_) = _, %v, want _, <nil>", ss.Client, err)
t.Fatalf("ss.Client.StreamingOutputCall(_) = _, %v, want _, <nil>", err)
}
if _, err := s.Recv(); err != io.EOF {
t.Fatalf("%v.StreamingInputCall(_) = _, %v, want _, %v", ss.Client, err, io.EOF)
t.Fatalf("ss.Client.StreamingInputCall(_) = _, %v, want _, %v", err, io.EOF)
}
}