return string directly

This commit is contained in:
Shreyas Goenka 2025-01-29 17:14:24 +01:00
parent ef6a673ec4
commit b0628d1071
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
1 changed files with 1 additions and 3 deletions

View File

@ -2,7 +2,6 @@ package acceptance_test
import ( import (
"context" "context"
"encoding/json"
"errors" "errors"
"flag" "flag"
"fmt" "fmt"
@ -222,8 +221,7 @@ func runTest(t *testing.T, dir, coverDir string, repls testdiff.ReplacementsCont
for _, stub := range config.Server { for _, stub := range config.Server {
require.NotEmpty(t, stub.Pattern) require.NotEmpty(t, stub.Pattern)
server.Handle(stub.Pattern, func(req *http.Request) (resp any, err error) { server.Handle(stub.Pattern, func(req *http.Request) (resp any, err error) {
b := json.RawMessage(stub.Response.Body) return stub.Response.Body, nil
return b, nil
}) })
} }
cmd.Env = append(cmd.Env, "DATABRICKS_HOST="+server.URL) cmd.Env = append(cmd.Env, "DATABRICKS_HOST="+server.URL)