diff options
author | Daniel Gustafsson | 2025-03-26 12:20:56 +0000 |
---|---|---|
committer | Daniel Gustafsson | 2025-03-26 12:20:56 +0000 |
commit | 1eb399366ed658d41b8795a0a25599a8599bbcfb (patch) | |
tree | 29caf9b0bdcc734b829e1eecabf90425513ecb6f /src/bin/psql | |
parent | 3642df265d09779443a9f44f5cb873df40974e89 (diff) |
psql: Make test robust against locale variations
The test committed in 1a759c83278 was prone to failing when using
locales with a different decimal separator. Since the test value
isn't the important part, change to using an integer instead.
Author: Daniel Gustafsson <[email protected]>
Reported-by: Pavel Stehule <[email protected]>
Reviewed-by: Pavel Stehule <[email protected]>
Discussion: https://postgr.es/m/CAFj8pRDE=7uW7QP4rg-OQLE2i-puYsUUt+eHE-L6_b_J9w=eWg@mail.gmail.com
Diffstat (limited to 'src/bin/psql')
-rw-r--r-- | src/bin/psql/t/001_basic.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/psql/t/001_basic.pl b/src/bin/psql/t/001_basic.pl index 7192d96049d..739cb439708 100644 --- a/src/bin/psql/t/001_basic.pl +++ b/src/bin/psql/t/001_basic.pl @@ -436,12 +436,12 @@ psql_fails_like( psql_like( $node, '\echo :WATCH_INTERVAL -\set WATCH_INTERVAL 0.001 +\set WATCH_INTERVAL 10 \echo :WATCH_INTERVAL \unset WATCH_INTERVAL \echo :WATCH_INTERVAL', qr/^2$ -^0.001$ +^10$ ^2$/m, 'WATCH_INTERVAL variable is set and updated'); psql_fails_like( |