Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Leung <rleungx@gmail.com>
  • Loading branch information
rleungx committed Feb 20, 2025
1 parent 27103db commit ba12a08
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/integrations/realcluster/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,8 @@ func ExtractPhysical(ts uint64) int64 {
}

func runCommand(cmdStr string) error {
ctx, cancel := context.WithTimeout(context.Background(), 3*time.Second)
defer cancel()
cmd := exec.CommandContext(ctx, "bash", "-c", cmdStr)
return cmd.Start()
cmd := exec.Command("bash", "-c", cmdStr)
return cmd.Run()
}

func runCommandWithOutput(cmdStr string) (string, error) {
Expand Down

0 comments on commit ba12a08

Please sign in to comment.