Skip to content

Commit f024dc3

Browse files
Merge pull request #29 from snyk/feat/upd-test-endpoint
feat: [DGP-688] Update CLI's TestAPI to public endpoint, and reduce poll interval
2 parents 38d3cc9 + 7633b71 commit f024dc3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/commands/ostest/workflow.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const FeatureFlagRiskScoreInCLI = "feature_flag_experimental_risk_score_in_cli"
4545
const ForceLegacyCLIEnvVar = "SNYK_FORCE_LEGACY_CLI"
4646

4747
// PollInterval is the polling interval for the test API. It is exported to be configurable in tests.
48-
var PollInterval = 8 * time.Second
48+
var PollInterval = 2 * time.Second
4949

5050
// RegisterWorkflows registers the "test" workflow.
5151
func RegisterWorkflows(e workflow.Engine) error {

internal/snykclient/snykclient.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func (s *Client) GetClient() *http.Client {
2424
// GetAPIBaseURL returns the API base URL.
2525
func (s *Client) GetAPIBaseURL() string {
2626
// TODO: remove this when we go GA.
27-
return s.apiBaseURL + "/closed-beta/"
27+
return s.apiBaseURL + "/rest/"
2828
}
2929

3030
// GetOrgID returns the organization ID.

0 commit comments

Comments
 (0)