mirror of
https://github.com/postgres/postgres.git
synced 2026-05-28 04:35:45 -04:00
Fix timezone dependence in test_misc/012_ddlutils.pl
The tests introduced in c529ee38b9 are timezone sensitive.
Pin the cluster's timezone to UTC at init time so timestamptz output
is deterministic regardless of the host's local timezone.
This commit is contained in:
parent
c529ee38b9
commit
df1bac400f
1 changed files with 3 additions and 0 deletions
|
|
@ -15,6 +15,9 @@ use Test::More;
|
|||
|
||||
my $node = PostgreSQL::Test::Cluster->new('main');
|
||||
$node->init;
|
||||
# Force UTC so that timestamptz values (e.g. VALID UNTIL) render the same
|
||||
# way regardless of the host's local timezone.
|
||||
$node->append_conf('postgresql.conf', "timezone = 'UTC'\n");
|
||||
$node->start;
|
||||
|
||||
# Perl helper that strips locale/collation details from DDL output so
|
||||
|
|
|
|||
Loading…
Reference in a new issue