Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
msepga committed Nov 26, 2024
1 parent a21c071 commit 892d500
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion spec/lib/parse_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,8 @@
PgQuery::RawStmt.new(
stmt: PgQuery::Node.new(
transaction_stmt: PgQuery::TransactionStmt.new(
kind: :TRANS_STMT_COMMIT
kind: :TRANS_STMT_COMMIT,
location: -1
)
)
)
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/pg_query/deparse_bad_tree_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

expect { PgQuery.deparse(tree) }.to raise_error do |error|
expect(error).to be_a(described_class::ParseError)
expect(error.message).to eq "deparse: error in deparseTargetList: ResTarget without val (postgres_deparse.c:1553)"
expect(error.message).to eq "deparse: error in deparseTargetList: ResTarget without val (postgres_deparse.c:1582)"
end
end
end
Expand Down

0 comments on commit 892d500

Please sign in to comment.