Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rmosolgo committed Apr 22, 2024
1 parent 8acc708 commit a8f6ad1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/graphql/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ def default_max_page_size(new_default_max_page_size = nil)
# @return [nil, Integer]
def max_query_string_tokens(new_max_tokens = NOT_CONFIGURED)
if NOT_CONFIGURED.equal?(new_max_tokens)
@max_query_string_tokens || find_inherited_value(:max_query_string_tokens)
defined?(@max_query_string_tokens) ? @max_query_string_tokens : find_inherited_value(:max_query_string_tokens)
else
@max_query_string_tokens = new_max_tokens
end
Expand Down
2 changes: 1 addition & 1 deletion spec/graphql/query_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1091,7 +1091,7 @@ def self.visible?(member, ctx)
describe "using GraphQL.default_parser" do
module DummyParser
DOC = GraphQL::Language::Parser.parse("{ __typename }")
def self.parse(query_str, trace: nil, filename: nil)
def self.parse(query_str, trace: nil, filename: nil, max_tokens: nil)
DOC
end
end
Expand Down

0 comments on commit a8f6ad1

Please sign in to comment.