Skip to content

Commit 1eb3993

Browse files
psql: Make test robust against locale variations
The test committed in 1a759c8 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 <daniel@yesql.se> Reported-by: Pavel Stehule <pavel.stehule@gmail.com> Reviewed-by: Pavel Stehule <pavel.stehule@gmail.com> Discussion: https://postgr.es/m/CAFj8pRDE=7uW7QP4rg-OQLE2i-puYsUUt+eHE-L6_b_J9w=eWg@mail.gmail.com
1 parent 3642df2 commit 1eb3993

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/psql/t/001_basic.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,12 +436,12 @@ sub psql_fails_like
436436
psql_like(
437437
$node,
438438
'\echo :WATCH_INTERVAL
439-
\set WATCH_INTERVAL 0.001
439+
\set WATCH_INTERVAL 10
440440
\echo :WATCH_INTERVAL
441441
\unset WATCH_INTERVAL
442442
\echo :WATCH_INTERVAL',
443443
qr/^2$
444-
^0.001$
444+
^10$
445445
^2$/m,
446446
'WATCH_INTERVAL variable is set and updated');
447447
psql_fails_like(

0 commit comments

Comments
 (0)