mirror of https://github.com/grpc/grpc-go.git
transport/test: implement staticcheck suggestion (#5752)
This commit is contained in:
parent
aa44ccaf84
commit
fdcc01b8c1
|
|
@ -1297,7 +1297,6 @@ func (s) TestClientHonorsConnectContext(t *testing.T) {
|
|||
}
|
||||
|
||||
// Test context deadline.
|
||||
timeBefore = time.Now()
|
||||
connectCtx, cancel = context.WithTimeout(context.Background(), 100*time.Millisecond)
|
||||
defer cancel()
|
||||
_, err = NewClientTransport(connectCtx, context.Background(), resolver.Address{Addr: lis.Addr().String()}, copts, func(GoAwayReason) {}, func() {})
|
||||
|
|
|
|||
Loading…
Reference in New Issue