Skip to content

Commit

Permalink
Fix begin-trail test
Browse files Browse the repository at this point in the history
  • Loading branch information
JonJagger committed Jan 9, 2025
1 parent 78d5712 commit 0159211
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/kosli/beginTrail_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func (suite *BeginTrailCommandTestSuite) TestBeginTrailCmd() {
wantError: true,
name: "beginning a trail with an invalid template fails",
cmd: fmt.Sprintf("begin trail test-123 --flow %s --template-file testdata/invalid_template.yml %s", suite.flowName, suite.defaultKosliArguments),
goldenRegex: "Error: 1 validation error for Template\n.*",
goldenRegex: "Error: 3 validation errors for Template\n.*",
},
{
name: "can begin a trail with a valid template",
Expand Down
6 changes: 3 additions & 3 deletions internal/requests/requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ type Client struct {
func NewKosliClient(httpProxyURL string, maxAPIRetries int, debug bool, logger *logger.Logger) (*Client, error) {
retryClient := retryablehttp.NewClient()
retryClient.RetryMax = maxAPIRetries
if !debug {
retryClient.Logger = nil // this silences logging each individual attempt
}
if !debug {
retryClient.Logger = nil // this silences logging each individual attempt
}
client := retryClient.StandardClient() // return a standard *http.Client from the retryable client
if httpProxyURL != "" {
proxyURL, err := url.Parse(httpProxyURL)
Expand Down

0 comments on commit 0159211

Please sign in to comment.