Skip to content

Commit 94fad8b

Browse files
committed
Fix lex tracing spec
1 parent adf80c3 commit 94fad8b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

spec/graphql/language/parser_spec.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,8 +379,10 @@ def parse(query_string:)
379379
end
380380

381381
def lex(query_string:)
382-
TRACES << { key: "lex", query_string: query_string }
383-
super
382+
TRACES << (trace = { key: "lex", query_string: query_string })
383+
result = super
384+
trace[:result] = result
385+
result
384386
end
385387

386388
def self.clear

0 commit comments

Comments
 (0)