Merge pull request #1477 from saschagrunert/port-forward-timeout
Increase port-forward timeout to 1s to fix e2e test
This commit is contained in:
commit
64aa9da76f
@ -100,9 +100,9 @@ func (c *criService) portForward(ctx context.Context, id string, port int32, str
|
|||||||
return ctx.Err()
|
return ctx.Err()
|
||||||
}
|
}
|
||||||
// give a chance to terminate gracefully or timeout
|
// give a chance to terminate gracefully or timeout
|
||||||
// 0.5s is the default timeout used in socat
|
// after 1s
|
||||||
// https://linux.die.net/man/1/socat
|
// https://linux.die.net/man/1/socat
|
||||||
timeout := time.Duration(500) * time.Millisecond
|
const timeout = time.Second
|
||||||
select {
|
select {
|
||||||
case e := <-errCh:
|
case e := <-errCh:
|
||||||
if errFwd == nil {
|
if errFwd == nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user