Skip to content

Commit

Permalink
using log pkg for sleep msg
Browse files Browse the repository at this point in the history
  • Loading branch information
robbycochran committed Aug 17, 2024
1 parent cbb964a commit c91ddd9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions integration-tests/pkg/common/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package common

import (
"bytes"
"fmt"
"os"
"path/filepath"
"runtime"
Expand All @@ -11,6 +10,7 @@ import (
"time"

"github.com/stackrox/collector/integration-tests/pkg/config"
"github.com/stackrox/collector/integration-tests/pkg/log"
"golang.org/x/sys/unix"
"k8s.io/utils/strings/slices"
)
Expand Down Expand Up @@ -70,6 +70,6 @@ func PrepareLog(testName string, logName string) (*os.File, error) {

func Sleep(duration time.Duration) {
_, filename, line, _ := runtime.Caller(1)
fmt.Printf("%s:%d sleeping for %f s\n", filename, line, duration.Seconds())
log.Info("%s:%d sleeping for %f s\n", filename, line, duration.Seconds())
time.Sleep(duration)
}
2 changes: 1 addition & 1 deletion integration-tests/pkg/executor/retry.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"time"

"github.com/stackrox/collector/integration-tests/pkg/common"
"github.com/stackrox/collector/integration-tests/suites/log"
"github.com/stackrox/collector/integration-tests/pkg/log"
)

const (
Expand Down

0 comments on commit c91ddd9

Please sign in to comment.