From 6580869117e1a78f3e28108eb41713db03ba4bcb Mon Sep 17 00:00:00 2001 From: Shreyas Goenka Date: Fri, 20 Dec 2024 11:38:17 +0530 Subject: [PATCH] merge --- .../libs/telemetry}/telemetry_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename {internal => integration/libs/telemetry}/telemetry_test.go (92%) diff --git a/internal/telemetry_test.go b/integration/libs/telemetry/telemetry_test.go similarity index 92% rename from internal/telemetry_test.go rename to integration/libs/telemetry/telemetry_test.go index d5f8e0ec3..f6566c117 100644 --- a/internal/telemetry_test.go +++ b/integration/libs/telemetry/telemetry_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - "github.com/databricks/cli/internal/acc" + "github.com/databricks/cli/integration/internal/acc" "github.com/databricks/cli/libs/telemetry" "github.com/databricks/databricks-sdk-go/client" "github.com/stretchr/testify/assert" @@ -22,14 +22,14 @@ type apiClientWrapper struct { func (wrapper *apiClientWrapper) Do(ctx context.Context, method, path string, headers map[string]string, request, response any, - visitors ...func(*http.Request) error) error { - + visitors ...func(*http.Request) error, +) error { err := wrapper.apiClient.Do(ctx, method, path, headers, request, response, visitors...) wrapper.response = response.(*telemetry.ResponseBody) return err } -func TestAccTelemetryLogger(t *testing.T) { +func TestTelemetryLogger(t *testing.T) { ctx, w := acc.WorkspaceTest(t) ctx = telemetry.NewContext(ctx)