Skip to content

Commit e0a42d4

Browse files
committed
chore: remove strict timeout restrictions in test for slow github action
1 parent 83ac220 commit e0a42d4

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

listener/inbound/common_test.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -186,19 +186,19 @@ func NewHttpTestTunnel() *TestTunnel {
186186
DialContext: func(context.Context, string, string) (net.Conn, error) {
187187
return instance, nil
188188
},
189-
// from http.DefaultTransport
190-
MaxIdleConns: 100,
191-
IdleConnTimeout: 90 * time.Second,
192-
TLSHandshakeTimeout: 10 * time.Second,
193-
ExpectContinueTimeout: 1 * time.Second,
189+
//// from http.DefaultTransport
190+
//MaxIdleConns: 100,
191+
//IdleConnTimeout: 90 * time.Second,
192+
//TLSHandshakeTimeout: 10 * time.Second,
193+
//ExpectContinueTimeout: 1 * time.Second,
194194
// for our self-signed cert
195195
TLSClientConfig: tlsClientConfig.Clone(),
196196
// open http2
197197
ForceAttemptHTTP2: true,
198198
}
199199

200200
client := http.Client{
201-
Timeout: 30 * time.Second,
201+
Timeout: 60 * time.Second,
202202
Transport: transport,
203203
CheckRedirect: func(req *http.Request, via []*http.Request) error {
204204
return http.ErrUseLastResponse
@@ -284,8 +284,8 @@ func NewHttpTestTunnel() *TestTunnel {
284284
return
285285
}
286286
}
287-
ctx, cancel := context.WithTimeout(ctx, C.DefaultTLSTimeout)
288-
defer cancel()
287+
//ctx, cancel := context.WithTimeout(ctx, C.DefaultTLSTimeout)
288+
//defer cancel()
289289
if err := tlsConn.HandshakeContext(ctx); err != nil {
290290
return
291291
}

0 commit comments

Comments
 (0)