chore: increase timeout for bd version check (#871)
Signed-off-by: Rui Chen <rui@chenrui.dev>
This commit is contained in:
@@ -91,7 +91,7 @@ func (v beadsVersion) compare(other beadsVersion) int {
|
||||
var beadsVersionRe = regexp.MustCompile(`bd version (\d+\.\d+(?:\.\d+)?(?:-\w+)?)`)
|
||||
|
||||
func getBeadsVersion() (string, error) {
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 2*time.Second)
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
|
||||
defer cancel()
|
||||
|
||||
cmd := exec.CommandContext(ctx, "bd", "version")
|
||||
|
||||
Reference in New Issue
Block a user