Skip to content

Commit cc598c7

Browse files
committed
ref(tests): remove unnecessary time.Sleep()
1 parent 14cacc8 commit cc598c7

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

tests/utils/utils.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import (
1414
"path/filepath"
1515
"strings"
1616
"syscall"
17-
"time"
1817
)
1918

2019
// BuildTag returns the $BUILD_TAG environment variable or `git rev-parse` output.
@@ -155,7 +154,6 @@ func RunCommandWithStdoutStderr(cmd *exec.Cmd) (bytes.Buffer, bytes.Buffer, erro
155154
go func() {
156155
streamOutput(stderrPipe, &stderr, os.Stderr)
157156
}()
158-
time.Sleep(2000 * time.Millisecond)
159157
err = cmd.Wait()
160158
if err != nil {
161159
fmt.Println("error at command wait")

0 commit comments

Comments
 (0)