Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1477 from saschagrunert/port-forward-timeout
Browse files Browse the repository at this point in the history
Increase port-forward timeout to 1s to fix e2e test
  • Loading branch information
mikebrow committed May 12, 2020
2 parents 8c366df + e2cedb9 commit 64aa9da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/server/sandbox_portforward_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ func (c *criService) portForward(ctx context.Context, id string, port int32, str
return ctx.Err()
}
// 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
timeout := time.Duration(500) * time.Millisecond
const timeout = time.Second
select {
case e := <-errCh:
if errFwd == nil {
Expand Down

0 comments on commit 64aa9da

Please sign in to comment.