Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyas-goenka committed Jan 29, 2025
1 parent 3e7acdb commit ca17487
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions acceptance/acceptance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,8 @@ func runTest(t *testing.T, dir, coverDir string, repls testdiff.ReplacementsCont
// specifies a custom server stubs.
if len(config.Server) > 0 {
server := testserver.New(t)
t.Cleanup(server.Close)

for _, stub := range config.Server {
require.NotEmpty(t, stub.Pattern)
require.NotEmpty(t, stub.Response.Body)
Expand All @@ -220,9 +222,6 @@ func runTest(t *testing.T, dir, coverDir string, repls testdiff.ReplacementsCont
})
}
cmdEnv = setEnv(cmdEnv, "DATABRICKS_HOST", server.URL)
t.Cleanup(func() {
server.Close()
})
}

repls.SetPathWithParents(tmpDir, "$TMPDIR")
Expand Down

0 comments on commit ca17487

Please sign in to comment.