Skip to content

Commit

Permalink
fix: Put a sleep in the RunCommand implementation
Browse files Browse the repository at this point in the history
as it might break the container runtime with flooding it with status requests
  • Loading branch information
dploeger committed Jan 8, 2024
1 parent 532aa8d commit 49df0b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/tests/lib/container/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
"github.com/thoas/go-funk"
"io"
"strings"
"time"
)

// generate a platform spec from a platform string.
Expand Down Expand Up @@ -199,6 +200,7 @@ func (d DockerAdapter) RunCommand(containerID string, cmd []string) (string, err
}
return fmt.Sprintf("Command output: %s\n\nContainer output: %s\n%s", commandLogbuf.String(), containerLogBuf.String(), err), nil
}
time.Sleep(2 * time.Second)
}
}
}

0 comments on commit 49df0b9

Please sign in to comment.