mirror of https://github.com/databricks/cli.git
Close acceptance test server on test cleanup
This commit is contained in:
parent
30f57d3b49
commit
ebe62a6537
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue