Skip to content

Commit

Permalink
Style change
Browse files Browse the repository at this point in the history
Signed-off-by: Kristoffer Dalby <[email protected]>
  • Loading branch information
kradalby committed Oct 7, 2022
1 parent 85df2c8 commit f3dbfc9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions integration_common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,19 @@ func ExecuteCommand(
fmt.Println("stdout: ", stdout.String())
fmt.Println("stderr: ", stderr.String())

return stdout.String(), stderr.String(), fmt.Errorf("command failed with: %s", stderr.String())
return stdout.String(), stderr.String(), fmt.Errorf(
"command failed with: %s",
stderr.String(),
)
}

return stdout.String(), stderr.String(), nil
case <-time.After(execConfig.timeout):

return stdout.String(), stderr.String(), fmt.Errorf("command timed out after %s", execConfig.timeout)
return stdout.String(), stderr.String(), fmt.Errorf(
"command timed out after %s",
execConfig.timeout,
)
}
}

Expand Down

0 comments on commit f3dbfc9

Please sign in to comment.