Skip to content

Commit

Permalink
fix tests too
Browse files Browse the repository at this point in the history
Signed-off-by: Sarah Funkhouser <[email protected]>
  • Loading branch information
golanglemonade committed Sep 22, 2024
1 parent 856583e commit ba4d2ef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion jsonschema/schema_generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ import (
"github.com/invopop/yaml"
"github.com/mcuadros/go-defaults"

"github.com/theopenlane/core/config"
"github.com/theopenlane/utils/envparse"

"github.com/theopenlane/core/config"
)

// const values used for the schema generator
Expand Down
5 changes: 3 additions & 2 deletions pkg/testutils/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
"github.com/theopenlane/core/pkg/openlaneclient"
echo "github.com/theopenlane/echox"
"github.com/theopenlane/echox/middleware/echocontext"
"github.com/vektah/gqlparser/v2/ast"
)

// localRoundTripper is an http.RoundTripper that executes HTTP transactions
Expand Down Expand Up @@ -108,10 +109,10 @@ func testGraphServer(t *testing.T, c *generated.Client) *handler.Server {
))

// lower the cache size for testing
srv.SetQueryCache(lru.New(1000))
srv.SetQueryCache(lru.New[*ast.QueryDocument](1000))

srv.Use(extension.AutomaticPersistedQuery{
Cache: lru.New(100), //nolint:mnd
Cache: lru.New[string](100), //nolint:mnd
})

// add all extension to the server
Expand Down

0 comments on commit ba4d2ef

Please sign in to comment.