Skip to content

Commit 020bb21

Browse files
committed
Remove need for warm-up query
1 parent 93df8fd commit 020bb21

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

lib/graphql/schema/ractor_shareable.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ def self.extended(schema_class)
99

1010
module SchemaExtension
1111
def freeze_schema
12+
# warm some ivars:
13+
default_analysis_engine
14+
default_execution_strategy
15+
GraphQL.default_parser
16+
default_logger
17+
1218
own_tracers.freeze
1319
@frozen_tracers = tracers.freeze
1420
own_trace_modes.each do |m|

spec/graphql/schema/ractor_shareable_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ class Query < GraphQL::Schema::Object
1717
end
1818

1919
it "can access some basic GraphQL objects" do
20-
assert_equal({ "data" => { "__typename" => "Query" } }, RactorExampleSchema.execute("{ __typename }"))
2120

2221
ractor = Ractor.new do
2322
parent = Ractor.receive

0 commit comments

Comments
 (0)