Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit db30ef7

Browse files
authored
Merge pull request #1728 from bukhavtsov/feature/refactoring
2 parents 3ec33fa + 610f34f commit db30ef7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

utils/e2e/framework.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -215,13 +215,13 @@ func (c *E2eCLI) NewDockerCmd(args ...string) icmd.Cmd {
215215

216216
// RunDockerOrExitError runs a docker command and returns a result
217217
func (c *E2eCLI) RunDockerOrExitError(args ...string) *icmd.Result {
218-
fmt.Printf(" [%s] docker %s\n", c.test.Name(), strings.Join(args, " "))
218+
fmt.Printf("\t[%s] docker %s\n", c.test.Name(), strings.Join(args, " "))
219219
return icmd.RunCmd(c.NewDockerCmd(args...))
220220
}
221221

222222
// RunCmd runs a command, expects no error and returns a result
223223
func (c *E2eCLI) RunCmd(args ...string) *icmd.Result {
224-
fmt.Printf(" [%s] %s\n", c.test.Name(), strings.Join(args, " "))
224+
fmt.Printf("\t[%s] %s\n", c.test.Name(), strings.Join(args, " "))
225225
assert.Assert(c.test, len(args) >= 1, "require at least one command in parameters")
226226
res := icmd.RunCmd(c.NewCmd(args[0], args[1:]...))
227227
res.Assert(c.test, icmd.Success)
@@ -247,7 +247,7 @@ func (c *E2eCLI) WaitForCmdResult(command icmd.Cmd, predicate func(*icmd.Result)
247247
assert.Assert(c.test, timeout.Nanoseconds() > delay.Nanoseconds(), "timeout must be greater than delay")
248248
var res *icmd.Result
249249
checkStopped := func(logt poll.LogT) poll.Result {
250-
fmt.Printf(" [%s] %s\n", c.test.Name(), strings.Join(command.Command, " "))
250+
fmt.Printf("\t[%s] %s\n", c.test.Name(), strings.Join(command.Command, " "))
251251
res = icmd.RunCmd(command)
252252
if !predicate(res) {
253253
return poll.Continue("Cmd output did not match requirement: %q", res.Combined())
@@ -302,7 +302,7 @@ func HTTPGetWithRetry(t *testing.T, endpoint string, expectedStatus int, retryDe
302302
client := &http.Client{
303303
Timeout: retryDelay,
304304
}
305-
fmt.Printf(" [%s] GET %s\n", t.Name(), endpoint)
305+
fmt.Printf("\t[%s] GET %s\n", t.Name(), endpoint)
306306
checkUp := func(t poll.LogT) poll.Result {
307307
r, err = client.Get(endpoint)
308308
if err != nil {

0 commit comments

Comments
 (0)