diff --git a/.circleci/config.yml b/.circleci/config.yml index dbb5c348f..1ae1efa07 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -23,6 +23,35 @@ references: S3_ARTIFACT_BUCKET: consul-dev-artifacts jobs: + # Runs go fmt and go vet + go-fmt-and-vet: + docker: + - image: *GOLANG_IMAGE + steps: + - checkout + - restore_cache: + keys: + - consul-modcache-v1-{{ checksum "go.mod" }} + - run: + command: go mod download + - save_cache: + key: consul-modcache-v1-{{ checksum "go.mod" }} + paths: + - /go/pkg/mod + - run: + name: check go fmt + command: | + files=$(go fmt ./...) + if [ -n "$files" ]; then + echo "The following file(s) do not conform to go fmt:" + echo "$files" + exit 1 + fi + - run: + command: go vet ./... + environment: + <<: *ENVIRONMENT + # build all distros build-distros: &build-distros docker: @@ -288,9 +317,12 @@ workflows: version: 2 build-distros: jobs: - - build-386 - - build-amd64 - - build-arm-arm64 + - go-fmt-and-vet + - build-386: &require-go-fmt-vet + requires: + - go-fmt-and-vet + - build-amd64: *require-go-fmt-vet + - build-arm-arm64: *require-go-fmt-vet test-integrations: jobs: - dev-build diff --git a/agent/consul/acl_endpoint_test.go b/agent/consul/acl_endpoint_test.go index 7b79067aa..c88ba1563 100644 --- a/agent/consul/acl_endpoint_test.go +++ b/agent/consul/acl_endpoint_test.go @@ -15,8 +15,8 @@ import ( "github.com/hashicorp/consul/agent/structs" tokenStore "github.com/hashicorp/consul/agent/token" "github.com/hashicorp/consul/lib" - "github.com/hashicorp/consul/testrpc" "github.com/hashicorp/consul/sdk/testutil/retry" + "github.com/hashicorp/consul/testrpc" uuid "github.com/hashicorp/go-uuid" msgpackrpc "github.com/hashicorp/net-rpc-msgpackrpc" "github.com/stretchr/testify/require" diff --git a/agent/consul/acl_replication_legacy_test.go b/agent/consul/acl_replication_legacy_test.go index ed3686556..a1eea646f 100644 --- a/agent/consul/acl_replication_legacy_test.go +++ b/agent/consul/acl_replication_legacy_test.go @@ -14,8 +14,8 @@ import ( "github.com/hashicorp/consul/agent/structs" tokenStore "github.com/hashicorp/consul/agent/token" - "github.com/hashicorp/consul/testrpc" "github.com/hashicorp/consul/sdk/testutil/retry" + "github.com/hashicorp/consul/testrpc" ) func TestACLReplication_Sorter(t *testing.T) { diff --git a/agent/consul/acl_replication_test.go b/agent/consul/acl_replication_test.go index 7a9744801..86c939c6a 100644 --- a/agent/consul/acl_replication_test.go +++ b/agent/consul/acl_replication_test.go @@ -9,8 +9,8 @@ import ( "github.com/hashicorp/consul/acl" "github.com/hashicorp/consul/agent/structs" tokenStore "github.com/hashicorp/consul/agent/token" - "github.com/hashicorp/consul/testrpc" "github.com/hashicorp/consul/sdk/testutil/retry" + "github.com/hashicorp/consul/testrpc" "github.com/stretchr/testify/require" ) diff --git a/agent/consul/autopilot_test.go b/agent/consul/autopilot_test.go index 232cf720d..35a914eb2 100644 --- a/agent/consul/autopilot_test.go +++ b/agent/consul/autopilot_test.go @@ -5,8 +5,8 @@ import ( "testing" "time" - "github.com/hashicorp/consul/testrpc" "github.com/hashicorp/consul/sdk/testutil/retry" + "github.com/hashicorp/consul/testrpc" "github.com/hashicorp/raft" "github.com/hashicorp/serf/serf" ) diff --git a/agent/consul/client_test.go b/agent/consul/client_test.go index ef25dbf88..1b3728c28 100644 --- a/agent/consul/client_test.go +++ b/agent/consul/client_test.go @@ -10,9 +10,9 @@ import ( "github.com/hashicorp/consul/agent/structs" "github.com/hashicorp/consul/sdk/freeport" - "github.com/hashicorp/consul/testrpc" "github.com/hashicorp/consul/sdk/testutil" "github.com/hashicorp/consul/sdk/testutil/retry" + "github.com/hashicorp/consul/testrpc" "github.com/hashicorp/net-rpc-msgpackrpc" "github.com/hashicorp/serf/serf" "github.com/stretchr/testify/require" diff --git a/agent/consul/connect_ca_endpoint_test.go b/agent/consul/connect_ca_endpoint_test.go index 1e98a7c46..63114930c 100644 --- a/agent/consul/connect_ca_endpoint_test.go +++ b/agent/consul/connect_ca_endpoint_test.go @@ -14,8 +14,8 @@ import ( "github.com/hashicorp/consul/agent/connect" ca "github.com/hashicorp/consul/agent/connect/ca" "github.com/hashicorp/consul/agent/structs" - "github.com/hashicorp/consul/testrpc" "github.com/hashicorp/consul/sdk/testutil/retry" + "github.com/hashicorp/consul/testrpc" msgpackrpc "github.com/hashicorp/net-rpc-msgpackrpc" "github.com/stretchr/testify/assert" ) diff --git a/agent/consul/coordinate_endpoint_test.go b/agent/consul/coordinate_endpoint_test.go index ead548133..e1b90f504 100644 --- a/agent/consul/coordinate_endpoint_test.go +++ b/agent/consul/coordinate_endpoint_test.go @@ -13,8 +13,8 @@ import ( "github.com/hashicorp/consul/acl" "github.com/hashicorp/consul/agent/structs" "github.com/hashicorp/consul/lib" - "github.com/hashicorp/consul/testrpc" "github.com/hashicorp/consul/sdk/testutil/retry" + "github.com/hashicorp/consul/testrpc" "github.com/hashicorp/net-rpc-msgpackrpc" "github.com/hashicorp/serf/coordinate" "github.com/pascaldekloe/goe/verify" diff --git a/agent/consul/leader_test.go b/agent/consul/leader_test.go index 556e37798..b6dc58bce 100644 --- a/agent/consul/leader_test.go +++ b/agent/consul/leader_test.go @@ -9,8 +9,8 @@ import ( "github.com/hashicorp/consul/agent/connect" "github.com/hashicorp/consul/agent/structs" "github.com/hashicorp/consul/api" - "github.com/hashicorp/consul/testrpc" "github.com/hashicorp/consul/sdk/testutil/retry" + "github.com/hashicorp/consul/testrpc" "github.com/hashicorp/net-rpc-msgpackrpc" "github.com/hashicorp/serf/serf" "github.com/stretchr/testify/require" diff --git a/agent/consul/operator_autopilot_endpoint_test.go b/agent/consul/operator_autopilot_endpoint_test.go index 2ce91bf62..4728f8436 100644 --- a/agent/consul/operator_autopilot_endpoint_test.go +++ b/agent/consul/operator_autopilot_endpoint_test.go @@ -9,8 +9,8 @@ import ( "github.com/hashicorp/consul/acl" "github.com/hashicorp/consul/agent/consul/autopilot" "github.com/hashicorp/consul/agent/structs" - "github.com/hashicorp/consul/testrpc" "github.com/hashicorp/consul/sdk/testutil/retry" + "github.com/hashicorp/consul/testrpc" "github.com/hashicorp/net-rpc-msgpackrpc" "github.com/hashicorp/raft" ) diff --git a/agent/consul/prepared_query_endpoint_test.go b/agent/consul/prepared_query_endpoint_test.go index 90532c4af..c4ae24233 100644 --- a/agent/consul/prepared_query_endpoint_test.go +++ b/agent/consul/prepared_query_endpoint_test.go @@ -15,8 +15,8 @@ import ( "github.com/hashicorp/consul/acl" "github.com/hashicorp/consul/agent/structs" "github.com/hashicorp/consul/api" - "github.com/hashicorp/consul/testrpc" "github.com/hashicorp/consul/sdk/testutil/retry" + "github.com/hashicorp/consul/testrpc" "github.com/hashicorp/consul/types" "github.com/hashicorp/net-rpc-msgpackrpc" "github.com/hashicorp/serf/coordinate" diff --git a/agent/consul/rpc_test.go b/agent/consul/rpc_test.go index 186e08d20..e147a8b57 100644 --- a/agent/consul/rpc_test.go +++ b/agent/consul/rpc_test.go @@ -8,8 +8,8 @@ import ( "github.com/hashicorp/consul/agent/consul/state" "github.com/hashicorp/consul/agent/structs" - "github.com/hashicorp/consul/testrpc" "github.com/hashicorp/consul/sdk/testutil/retry" + "github.com/hashicorp/consul/testrpc" "github.com/hashicorp/go-memdb" "github.com/hashicorp/net-rpc-msgpackrpc" "github.com/stretchr/testify/assert" diff --git a/agent/consul/server_test.go b/agent/consul/server_test.go index 9aa48ad78..86505b906 100644 --- a/agent/consul/server_test.go +++ b/agent/consul/server_test.go @@ -15,9 +15,9 @@ import ( "github.com/hashicorp/consul/agent/structs" "github.com/hashicorp/consul/agent/token" "github.com/hashicorp/consul/sdk/freeport" - "github.com/hashicorp/consul/testrpc" "github.com/hashicorp/consul/sdk/testutil" "github.com/hashicorp/consul/sdk/testutil/retry" + "github.com/hashicorp/consul/testrpc" "github.com/hashicorp/consul/tlsutil" "github.com/hashicorp/consul/types" "github.com/hashicorp/go-uuid" diff --git a/agent/consul/session_ttl_test.go b/agent/consul/session_ttl_test.go index abc30e599..67294e8db 100644 --- a/agent/consul/session_ttl_test.go +++ b/agent/consul/session_ttl_test.go @@ -8,8 +8,8 @@ import ( "time" "github.com/hashicorp/consul/agent/structs" - "github.com/hashicorp/consul/testrpc" "github.com/hashicorp/consul/sdk/testutil/retry" + "github.com/hashicorp/consul/testrpc" "github.com/hashicorp/go-uuid" "github.com/hashicorp/net-rpc-msgpackrpc" ) diff --git a/agent/consul/snapshot_endpoint_test.go b/agent/consul/snapshot_endpoint_test.go index 892c94dd0..62ed89fac 100644 --- a/agent/consul/snapshot_endpoint_test.go +++ b/agent/consul/snapshot_endpoint_test.go @@ -10,8 +10,8 @@ import ( "github.com/hashicorp/consul/acl" "github.com/hashicorp/consul/agent/structs" "github.com/hashicorp/consul/api" - "github.com/hashicorp/consul/testrpc" "github.com/hashicorp/consul/sdk/testutil/retry" + "github.com/hashicorp/consul/testrpc" "github.com/hashicorp/net-rpc-msgpackrpc" ) diff --git a/agent/dns_test.go b/agent/dns_test.go index 571684385..fbb02d672 100644 --- a/agent/dns_test.go +++ b/agent/dns_test.go @@ -14,8 +14,8 @@ import ( "github.com/hashicorp/consul/agent/structs" "github.com/hashicorp/consul/api" "github.com/hashicorp/consul/lib" - "github.com/hashicorp/consul/testrpc" "github.com/hashicorp/consul/sdk/testutil/retry" + "github.com/hashicorp/consul/testrpc" "github.com/hashicorp/serf/coordinate" "github.com/miekg/dns" "github.com/pascaldekloe/goe/verify" diff --git a/agent/remote_exec_test.go b/agent/remote_exec_test.go index 0b3dfbb34..60ac94935 100644 --- a/agent/remote_exec_test.go +++ b/agent/remote_exec_test.go @@ -11,8 +11,8 @@ import ( "github.com/hashicorp/consul/agent/structs" "github.com/hashicorp/consul/api" - "github.com/hashicorp/consul/testrpc" "github.com/hashicorp/consul/sdk/testutil/retry" + "github.com/hashicorp/consul/testrpc" "github.com/hashicorp/go-uuid" ) diff --git a/agent/txn_endpoint.go b/agent/txn_endpoint.go index eaad62406..d02baf775 100644 --- a/agent/txn_endpoint.go +++ b/agent/txn_endpoint.go @@ -253,13 +253,13 @@ func (s *HTTPServer) convertOps(resp http.ResponseWriter, req *http.Request) (st ServiceName: check.ServiceName, ServiceTags: check.ServiceTags, Definition: structs.HealthCheckDefinition{ - HTTP: check.Definition.HTTP, - TLSSkipVerify: check.Definition.TLSSkipVerify, - Header: check.Definition.Header, - Method: check.Definition.Method, - TCP: check.Definition.TCP, - Interval: interval, - Timeout: timeout, + HTTP: check.Definition.HTTP, + TLSSkipVerify: check.Definition.TLSSkipVerify, + Header: check.Definition.Header, + Method: check.Definition.Method, + TCP: check.Definition.TCP, + Interval: interval, + Timeout: timeout, DeregisterCriticalServiceAfter: deregisterCriticalServiceAfter, }, RaftIndex: structs.RaftIndex{ diff --git a/agent/txn_endpoint_test.go b/agent/txn_endpoint_test.go index 7a84bb04f..1d6d0e8d6 100644 --- a/agent/txn_endpoint_test.go +++ b/agent/txn_endpoint_test.go @@ -510,11 +510,11 @@ func TestTxnEndpoint_UpdateCheck(t *testing.T) { Status: api.HealthCritical, Notes: "Http based health check", Definition: structs.HealthCheckDefinition{ - Interval: 6 * time.Second, - Timeout: 6 * time.Second, + Interval: 6 * time.Second, + Timeout: 6 * time.Second, DeregisterCriticalServiceAfter: 6 * time.Second, - HTTP: "http://localhost:8000", - TLSSkipVerify: true, + HTTP: "http://localhost:8000", + TLSSkipVerify: true, }, RaftIndex: structs.RaftIndex{ CreateIndex: index, @@ -531,11 +531,11 @@ func TestTxnEndpoint_UpdateCheck(t *testing.T) { Notes: "Http based health check", Output: "success", Definition: structs.HealthCheckDefinition{ - Interval: 10 * time.Second, - Timeout: 10 * time.Second, + Interval: 10 * time.Second, + Timeout: 10 * time.Second, DeregisterCriticalServiceAfter: 15 * time.Minute, - HTTP: "http://localhost:9000", - TLSSkipVerify: false, + HTTP: "http://localhost:9000", + TLSSkipVerify: false, }, RaftIndex: structs.RaftIndex{ CreateIndex: index, @@ -552,11 +552,11 @@ func TestTxnEndpoint_UpdateCheck(t *testing.T) { Notes: "Http based health check", Output: "success", Definition: structs.HealthCheckDefinition{ - Interval: 15 * time.Second, - Timeout: 15 * time.Second, + Interval: 15 * time.Second, + Timeout: 15 * time.Second, DeregisterCriticalServiceAfter: 30 * time.Minute, - HTTP: "http://localhost:9000", - TLSSkipVerify: false, + HTTP: "http://localhost:9000", + TLSSkipVerify: false, }, RaftIndex: structs.RaftIndex{ CreateIndex: index, diff --git a/command/acl/agenttokens/agent_tokens_test.go b/command/acl/agenttokens/agent_tokens_test.go index 62c822321..7093ec592 100644 --- a/command/acl/agenttokens/agent_tokens_test.go +++ b/command/acl/agenttokens/agent_tokens_test.go @@ -8,8 +8,8 @@ import ( "github.com/hashicorp/consul/agent" "github.com/hashicorp/consul/api" "github.com/hashicorp/consul/logger" - "github.com/hashicorp/consul/testrpc" "github.com/hashicorp/consul/sdk/testutil" + "github.com/hashicorp/consul/testrpc" "github.com/mitchellh/cli" "github.com/stretchr/testify/assert" ) diff --git a/command/acl/bootstrap/bootstrap_test.go b/command/acl/bootstrap/bootstrap_test.go index 0023ba08f..b017ec884 100644 --- a/command/acl/bootstrap/bootstrap_test.go +++ b/command/acl/bootstrap/bootstrap_test.go @@ -8,8 +8,8 @@ import ( "github.com/hashicorp/consul/agent" "github.com/hashicorp/consul/agent/structs" "github.com/hashicorp/consul/logger" - "github.com/hashicorp/consul/testrpc" "github.com/hashicorp/consul/sdk/testutil" + "github.com/hashicorp/consul/testrpc" "github.com/mitchellh/cli" "github.com/stretchr/testify/assert" ) diff --git a/command/acl/policy/create/policy_create_test.go b/command/acl/policy/create/policy_create_test.go index d898f6156..a9f917491 100644 --- a/command/acl/policy/create/policy_create_test.go +++ b/command/acl/policy/create/policy_create_test.go @@ -8,8 +8,8 @@ import ( "github.com/hashicorp/consul/agent" "github.com/hashicorp/consul/logger" - "github.com/hashicorp/consul/testrpc" "github.com/hashicorp/consul/sdk/testutil" + "github.com/hashicorp/consul/testrpc" "github.com/mitchellh/cli" "github.com/stretchr/testify/assert" ) diff --git a/command/acl/policy/delete/policy_delete_test.go b/command/acl/policy/delete/policy_delete_test.go index 5066f9015..bbc3edd76 100644 --- a/command/acl/policy/delete/policy_delete_test.go +++ b/command/acl/policy/delete/policy_delete_test.go @@ -9,8 +9,8 @@ import ( "github.com/hashicorp/consul/agent" "github.com/hashicorp/consul/api" "github.com/hashicorp/consul/logger" - "github.com/hashicorp/consul/testrpc" "github.com/hashicorp/consul/sdk/testutil" + "github.com/hashicorp/consul/testrpc" "github.com/mitchellh/cli" "github.com/stretchr/testify/assert" ) diff --git a/command/acl/policy/list/policy_list_test.go b/command/acl/policy/list/policy_list_test.go index 446f2b709..45c708fb3 100644 --- a/command/acl/policy/list/policy_list_test.go +++ b/command/acl/policy/list/policy_list_test.go @@ -9,8 +9,8 @@ import ( "github.com/hashicorp/consul/agent" "github.com/hashicorp/consul/api" "github.com/hashicorp/consul/logger" - "github.com/hashicorp/consul/testrpc" "github.com/hashicorp/consul/sdk/testutil" + "github.com/hashicorp/consul/testrpc" "github.com/mitchellh/cli" "github.com/stretchr/testify/assert" ) diff --git a/command/acl/policy/read/policy_read_test.go b/command/acl/policy/read/policy_read_test.go index 45febad6f..2ca2fcfd7 100644 --- a/command/acl/policy/read/policy_read_test.go +++ b/command/acl/policy/read/policy_read_test.go @@ -9,8 +9,8 @@ import ( "github.com/hashicorp/consul/agent" "github.com/hashicorp/consul/api" "github.com/hashicorp/consul/logger" - "github.com/hashicorp/consul/testrpc" "github.com/hashicorp/consul/sdk/testutil" + "github.com/hashicorp/consul/testrpc" "github.com/mitchellh/cli" "github.com/stretchr/testify/assert" ) diff --git a/command/acl/policy/update/policy_update_test.go b/command/acl/policy/update/policy_update_test.go index e32922865..8d93b5e74 100644 --- a/command/acl/policy/update/policy_update_test.go +++ b/command/acl/policy/update/policy_update_test.go @@ -9,8 +9,8 @@ import ( "github.com/hashicorp/consul/agent" "github.com/hashicorp/consul/api" "github.com/hashicorp/consul/logger" - "github.com/hashicorp/consul/testrpc" "github.com/hashicorp/consul/sdk/testutil" + "github.com/hashicorp/consul/testrpc" "github.com/mitchellh/cli" "github.com/stretchr/testify/assert" ) diff --git a/command/acl/token/clone/token_clone_test.go b/command/acl/token/clone/token_clone_test.go index 10b2cfe98..0baa0c4f2 100644 --- a/command/acl/token/clone/token_clone_test.go +++ b/command/acl/token/clone/token_clone_test.go @@ -10,8 +10,8 @@ import ( "github.com/hashicorp/consul/agent" "github.com/hashicorp/consul/api" "github.com/hashicorp/consul/logger" - "github.com/hashicorp/consul/testrpc" "github.com/hashicorp/consul/sdk/testutil" + "github.com/hashicorp/consul/testrpc" "github.com/mitchellh/cli" "github.com/stretchr/testify/require" ) diff --git a/command/acl/token/create/token_create_test.go b/command/acl/token/create/token_create_test.go index 001a058ed..c092180cc 100644 --- a/command/acl/token/create/token_create_test.go +++ b/command/acl/token/create/token_create_test.go @@ -8,8 +8,8 @@ import ( "github.com/hashicorp/consul/agent" "github.com/hashicorp/consul/api" "github.com/hashicorp/consul/logger" - "github.com/hashicorp/consul/testrpc" "github.com/hashicorp/consul/sdk/testutil" + "github.com/hashicorp/consul/testrpc" "github.com/mitchellh/cli" "github.com/stretchr/testify/assert" ) diff --git a/command/acl/token/delete/token_delete_test.go b/command/acl/token/delete/token_delete_test.go index a6bf61f3c..f2810d632 100644 --- a/command/acl/token/delete/token_delete_test.go +++ b/command/acl/token/delete/token_delete_test.go @@ -9,8 +9,8 @@ import ( "github.com/hashicorp/consul/agent" "github.com/hashicorp/consul/api" "github.com/hashicorp/consul/logger" - "github.com/hashicorp/consul/testrpc" "github.com/hashicorp/consul/sdk/testutil" + "github.com/hashicorp/consul/testrpc" "github.com/mitchellh/cli" "github.com/stretchr/testify/assert" ) diff --git a/command/acl/token/list/token_list_test.go b/command/acl/token/list/token_list_test.go index 64693cae8..240d8bdee 100644 --- a/command/acl/token/list/token_list_test.go +++ b/command/acl/token/list/token_list_test.go @@ -9,8 +9,8 @@ import ( "github.com/hashicorp/consul/agent" "github.com/hashicorp/consul/api" "github.com/hashicorp/consul/logger" - "github.com/hashicorp/consul/testrpc" "github.com/hashicorp/consul/sdk/testutil" + "github.com/hashicorp/consul/testrpc" "github.com/mitchellh/cli" "github.com/stretchr/testify/assert" ) diff --git a/command/acl/token/read/token_read_test.go b/command/acl/token/read/token_read_test.go index 9d4629c14..9cbdd66f9 100644 --- a/command/acl/token/read/token_read_test.go +++ b/command/acl/token/read/token_read_test.go @@ -9,8 +9,8 @@ import ( "github.com/hashicorp/consul/agent" "github.com/hashicorp/consul/api" "github.com/hashicorp/consul/logger" - "github.com/hashicorp/consul/testrpc" "github.com/hashicorp/consul/sdk/testutil" + "github.com/hashicorp/consul/testrpc" "github.com/mitchellh/cli" "github.com/stretchr/testify/assert" ) diff --git a/command/acl/token/update/token_update_test.go b/command/acl/token/update/token_update_test.go index bd4ec0782..853822611 100644 --- a/command/acl/token/update/token_update_test.go +++ b/command/acl/token/update/token_update_test.go @@ -10,9 +10,9 @@ import ( "github.com/hashicorp/consul/agent" "github.com/hashicorp/consul/api" "github.com/hashicorp/consul/logger" - "github.com/hashicorp/consul/testrpc" "github.com/hashicorp/consul/sdk/testutil" "github.com/hashicorp/consul/sdk/testutil/retry" + "github.com/hashicorp/consul/testrpc" "github.com/mitchellh/cli" "github.com/stretchr/testify/assert" ) diff --git a/command/connect/proxy/register_test.go b/command/connect/proxy/register_test.go index d94b7ac9c..153b26e10 100644 --- a/command/connect/proxy/register_test.go +++ b/command/connect/proxy/register_test.go @@ -6,8 +6,8 @@ import ( "github.com/hashicorp/consul/agent" "github.com/hashicorp/consul/api" - "github.com/hashicorp/consul/testrpc" "github.com/hashicorp/consul/sdk/testutil/retry" + "github.com/hashicorp/consul/testrpc" "github.com/stretchr/testify/require" ) diff --git a/command/debug/debug_test.go b/command/debug/debug_test.go index fdf66be1a..841a7da26 100644 --- a/command/debug/debug_test.go +++ b/command/debug/debug_test.go @@ -12,8 +12,8 @@ import ( "github.com/hashicorp/consul/agent" "github.com/hashicorp/consul/logger" - "github.com/hashicorp/consul/testrpc" "github.com/hashicorp/consul/sdk/testutil" + "github.com/hashicorp/consul/testrpc" "github.com/mitchellh/cli" ) diff --git a/connect/service_test.go b/connect/service_test.go index 392e74bd8..2d04d14c4 100644 --- a/connect/service_test.go +++ b/connect/service_test.go @@ -18,8 +18,8 @@ import ( "github.com/hashicorp/consul/agent" "github.com/hashicorp/consul/agent/connect" "github.com/hashicorp/consul/api" - "github.com/hashicorp/consul/testrpc" "github.com/hashicorp/consul/sdk/testutil/retry" + "github.com/hashicorp/consul/testrpc" "github.com/stretchr/testify/require" )