Skip to content

Commit

Permalink
improve timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
damoon committed Feb 17, 2022
1 parent 3492f53 commit 2acbeec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func portForwardForever(ctx context.Context, localPort, dindPort int) {
select {
case <-ctx.Done():
return
case <-time.After(100 * time.Millisecond):
case <-time.After(10 * time.Millisecond):
err := portForward(ctx, localPort, dindPort)
if err != nil {
log.Printf("port forward failed: %v", err)
Expand Down Expand Up @@ -130,7 +130,7 @@ func awaitPortOpen(ctx context.Context, localPort int) error {
select {
case <-ctx.Done():
return fmt.Errorf("port did not open: %v", ctx.Err())
case <-time.After(1 * time.Second):
case <-time.After(10 * time.Millisecond):
timeout, cancel := context.WithTimeout(ctx, time.Second)
defer cancel()

Expand Down

0 comments on commit 2acbeec

Please sign in to comment.