Skip to content

Commit

Permalink
Add pending to test in PostgreSQL case
Browse files Browse the repository at this point in the history
With AR default timezone set to :local, PostgreSQL driver will try to convert missing DST time and will fail.
  • Loading branch information
jbaiza committed Oct 23, 2024
1 parent 7e216de commit c623fe2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/db/postgresql/simple_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,16 @@ def test_big_decimal
end
end

if Time.respond_to?(:zone)
# @override
def test_time_in_dst_change_hour_local
if ENV['CI']
pend 'TODO: CI: with AR default timezone set to :local PostgreSQL driver will not convert DST missing hour time'
end
super
end
end

def test_encoding
assert_not_nil connection.encoding
end
Expand Down

0 comments on commit c623fe2

Please sign in to comment.