style: gofumpt linting (#15605)
This commit is contained in:
@@ -49,7 +49,8 @@ func testExecCommon(t *testing.T, buildModuleCommand func(string, *Builder) (*co
|
||||
Builder: flag.Builder{
|
||||
GetClientConn: func() (grpc.ClientConnInterface, error) {
|
||||
return conn, nil
|
||||
}},
|
||||
},
|
||||
},
|
||||
GetClientConn: func(*cobra.Command) (grpc.ClientConnInterface, error) {
|
||||
return conn, nil
|
||||
},
|
||||
|
||||
@@ -159,7 +159,6 @@ func TestJSONParsing(t *testing.T) {
|
||||
"-u", "27", // shorthand
|
||||
)
|
||||
assert.DeepEqual(t, conn.lastRequest, conn.lastResponse.(*testpb.EchoResponse).Request, protocmp.Transform())
|
||||
|
||||
}
|
||||
|
||||
func TestOptions(t *testing.T) {
|
||||
@@ -319,7 +318,7 @@ type testClientConn struct {
|
||||
errorOut *bytes.Buffer
|
||||
}
|
||||
|
||||
func (t *testClientConn) Invoke(ctx context.Context, method string, args interface{}, reply interface{}, opts ...grpc.CallOption) error {
|
||||
func (t *testClientConn) Invoke(ctx context.Context, method string, args, reply interface{}, opts ...grpc.CallOption) error {
|
||||
err := t.ClientConn.Invoke(ctx, method, args, reply, opts...)
|
||||
t.lastRequest = args
|
||||
t.lastResponse = reply
|
||||
|
||||
Reference in New Issue
Block a user