File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed
src/test/modules/test_misc/t Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change 33
44use strict;
55use warnings;
6+ use locale;
7+
68use PostgreSQL::Test::Cluster;
79use PostgreSQL::Test::Utils;
810use Time::HiRes qw( usleep) ;
3537
3638# The following query will generate a stream of SELECT 1 queries. This is done
3739# so to exercise transaction timeout in the presence of short queries.
40+ # Note: the interval value is parsed with locale-aware strtod()
3841$psql_session -> query_until(
39- qr / starting_bg_psql/ , q(
40- \echo starting_bg_psql
41- SET transaction_timeout to '10ms';
42- BEGIN;
43- SELECT 1 \watch 0.001
44- \q
45- ) );
42+ qr / starting_bg_psql/ ,
43+ sprintf (
44+ q( \echo starting_bg_psql
45+ SET transaction_timeout to '10ms';
46+ BEGIN;
47+ SELECT 1 \watch %g
48+ \q
49+ ) , 0.001));
4650
4751# Wait until the backend enters the timeout injection point. Will get an error
4852# here if anything goes wrong.
You can’t perform that action at this time.
0 commit comments