This commit is contained in:
Shreyas Goenka 2025-01-27 12:59:07 +01:00
parent 74e2bfe7dc
commit 623bd0d395
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
1 changed files with 2 additions and 5 deletions

View File

@ -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())
})
}