postgrespro.git / summary / log / commit / refs

commit    87914e708aabb7e2cd9045fa95b4fed99ca458ec
Author:   Peter Eisentraut <peter@eisentraut.org>
Date:     Fri Mar 22 22:33:31 2019 +0000

    Make subscription collation test work independent of locale
    
    We need to set the database to UTF8 encoding so that the test can use
    Unicode escapes.


src/test/subscription/t/012_collation.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/subscription/t/012_collation.pl b/src/test/subscription/t/012_collation.pl index 6c480de9c1..9f79e96106 100644 --- a/src/test/subscription/t/012_collation.pl +++ b/src/test/subscription/t/012_collation.pl @@ -16,11 +16,11 @@ else } my $node_publisher = get_new_node('publisher'); -$node_publisher->init(allows_streaming => 'logical'); +$node_publisher->init(allows_streaming => 'logical', extra => [ '--locale=C', '--encoding=UTF8' ]); $node_publisher->start; my $node_subscriber = get_new_node('subscriber'); -$node_subscriber->init(allows_streaming => 'logical'); +$node_subscriber->init(allows_streaming => 'logical', extra => [ '--locale=C', '--encoding=UTF8' ]); $node_subscriber->start; my $publisher_connstr = $node_publisher->connstr . ' dbname=postgres'; [parent: 4e274a043fc8]