transport/test: implement staticcheck suggestion (#5752)

This commit is contained in:
Easwar Swaminathan 2022-10-31 16:50:41 -07:00 committed by GitHub
parent aa44ccaf84
commit fdcc01b8c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -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() {})