Обсуждение: pgsql: Fix test case instability introduced in 085b6b667.

Поиск
Список
Период
Сортировка

pgsql: Fix test case instability introduced in 085b6b667.

От
Tom Lane
Дата:
Fix test case instability introduced in 085b6b667.

I forgot that the WAL directory might hold other files besides WAL
segments, notably including new segments still being filled.
That means a blind test for the first file's size being 16MB can
fail.  Restrict based on file name length to make it more robust.

Per buildfarm.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a029a0641cce002acbb5e8ac6ec5533e599a9aea

Modified Files
--------------
src/test/regress/expected/misc_functions.out | 3 ++-
src/test/regress/sql/misc_functions.sql      | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)