Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rake test fails with Ruby 3.3 #318

Open
tientt-holistics opened this issue Aug 21, 2024 · 0 comments
Open

rake test fails with Ruby 3.3 #318

tientt-holistics opened this issue Aug 21, 2024 · 0 comments

Comments

@tientt-holistics
Copy link

  • My setup is
ruby 3.3.1 (2024-04-23 revision c56cd86388) [x86_64-linux]
pg_query (5.1.0)
  • Running rake test and 1 test in treewalker_spec.rb fail.
    Output
Failures:

  1) PgQuery.treewalker walks nodes contained in repeated fields
     Failure/Error:
       expect(locations).to match_array [
         [:stmts],
         [:stmts, 0],
         [:stmts, 0, :stmt],
         [:stmts, 0, :stmt, :select_stmt],
         [:stmts, 0, :stmt, :select_stmt, :distinct_clause],
         [:stmts, 0, :stmt, :select_stmt, :target_list],
         [:stmts, 0, :stmt, :select_stmt, :from_clause],
         [:stmts, 0, :stmt, :select_stmt, :group_clause],
         [:stmts, 0, :stmt, :select_stmt, :window_clause],
     
       expected collection contained:  [[:stmts], [:stmts, 0], [:stmts, 0, :stmt], [:stmts, 0, :stmt, :select_stmt], [:stmts, 0, :stmt, :sel..., [:stmts, 0, :stmt, :select_stmt, :values_lists], [:stmts, 0, :stmt, :select_stmt, :window_clause]]
       actual collection contained:    [[:stmts], [:stmts, 0], [:stmts, 0, :stmt], [:stmts, 0, :stmt, :select_stmt], [:stmts, 0, :stmt, :sel...mts, 0, :stmt, :select_stmt, :target_list, 0, :res_target, :val, :func_call, :funcname, 0, :string]]
       the missing elements were:      [[:stmts, 0, :stmt, :select_stmt, :distinct_clause], [:stmts, 0, :stmt, :select_stmt, :from_clause], ..., [:stmts, 0, :stmt, :select_stmt, :values_lists], [:stmts, 0, :stmt, :select_stmt, :window_clause]]
     # ./spec/lib/treewalker_spec.rb:9:in `block (2 levels) in <top (required)>'

Finished in 11.02 seconds (files took 0.22564 seconds to load)
604 examples, 1 failure, 1 pending

Failed examples:

rspec ./spec/lib/treewalker_spec.rb:4 # PgQuery.treewalker walks nodes contained in repeated fields
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant