Skip to content

Commit

Permalink
Fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Achooo committed May 8, 2023
1 parent 507f727 commit 03d9c2e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
5 changes: 3 additions & 2 deletions agent/hcp/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ import (
"strconv"
"time"

"github.com/hashicorp/consul/agent/hcp/config"
"github.com/hashicorp/consul/version"

httptransport "github.com/go-openapi/runtime/client"
"github.com/go-openapi/strfmt"

"github.com/hashicorp/consul/agent/hcp/config"
"github.com/hashicorp/consul/version"
hcptelemetry "github.com/hashicorp/hcp-sdk-go/clients/cloud-consul-telemetry-gateway/preview/2023-04-14/client/consul_telemetry_service"
hcpgnm "github.com/hashicorp/hcp-sdk-go/clients/cloud-global-network-manager-service/preview/2022-02-15/client/global_network_manager_service"
gnmmod "github.com/hashicorp/hcp-sdk-go/clients/cloud-global-network-manager-service/preview/2022-02-15/models"
Expand Down
1 change: 1 addition & 0 deletions agent/hcp/deps_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"testing"

"github.com/hashicorp/consul/agent/hcp/client"

"github.com/hashicorp/go-hclog"
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/require"
Expand Down
6 changes: 2 additions & 4 deletions lib/telemetry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ import (
"os"
"testing"

"github.com/armon/go-metrics"
"github.com/hashicorp/consul/logging"

"github.com/armon/go-metrics"
"github.com/hashicorp/go-multierror"
"github.com/stretchr/testify/require"
)

func newCfg() TelemetryConfig {

return TelemetryConfig{
StatsdAddr: "statsd.host:1234",
StatsiteAddr: "statsite.host:1234",
Expand Down Expand Up @@ -60,9 +60,7 @@ func TestInitTelemetryRetrySuccess(t *testing.T) {
LogLevel: "INFO",
}, os.Stdout)
require.NoError(t, err)

cfg := newCfg()

_, err = InitTelemetry(cfg, logger)
require.Error(t, err)

Expand Down

0 comments on commit 03d9c2e

Please sign in to comment.