Skip to content

interop: interop functions should not call context.Background() for RPCs #6763

Closed
@dfawley

Description

@dfawley

E.g.

func DoEmptyUnaryCall(tc testgrpc.TestServiceClient, args ...grpc.CallOption) {
reply, err := tc.EmptyCall(context.Background(), &testpb.Empty{}, args...)

This function and all others in this file should accept a context, which would allow passing RPC timeouts, metadata, etc. context.Background is really only supposed to be called by main/TestXyz functions wherever possible.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions