mirror of https://github.com/databricks/cli.git
This commit is contained in:
parent
74e2bfe7dc
commit
623bd0d395
|
@ -114,11 +114,8 @@ func testAccept(t *testing.T, InprocessMode bool, singleTest string) int {
|
|||
ctx := context.Background()
|
||||
cloudEnv := os.Getenv("CLOUD_ENV")
|
||||
|
||||
// TODO: do NOT pass this.
|
||||
var defaultServer *testserver.Server
|
||||
|
||||
if cloudEnv == "" {
|
||||
defaultServer = StartServer(t)
|
||||
defaultServer := StartServer(t)
|
||||
AddHandlers(defaultServer)
|
||||
// Redirect API access to local server:
|
||||
t.Setenv("DATABRICKS_HOST", defaultServer.URL)
|
||||
|
@ -158,7 +155,7 @@ func testAccept(t *testing.T, InprocessMode bool, singleTest string) int {
|
|||
t.Parallel()
|
||||
}
|
||||
|
||||
runTest(t, dir, coverDir, repls.Clone(), defaultServer)
|
||||
runTest(t, dir, coverDir, repls.Clone())
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue