Close acceptance test server on test cleanup

This commit is contained in:
Shreyas Goenka 2025-01-29 12:59:16 +01:00
parent 30f57d3b49
commit ebe62a6537
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
1 changed files with 1 additions and 2 deletions

View File

@ -20,7 +20,6 @@ import (
"github.com/databricks/cli/internal/testutil"
"github.com/databricks/cli/libs/env"
"github.com/databricks/cli/libs/testdiff"
"github.com/databricks/cli/libs/testserver"
"github.com/databricks/databricks-sdk-go"
"github.com/stretchr/testify/require"
)
@ -108,7 +107,7 @@ func testAccept(t *testing.T, InprocessMode bool, singleTest string) int {
cloudEnv := os.Getenv("CLOUD_ENV")
if cloudEnv == "" {
server := testserver.New(t)
server := StartServer(t)
AddHandlers(server)
// Redirect API access to local server:
t.Setenv("DATABRICKS_HOST", server.URL)