aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2015-12-24 11:38:31 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2015-12-24 11:38:38 -0500
commit2e947ba977eba1c0c31a2981d090b7b1897c49c2 (patch)
treeaea7ee7bff288373e8b1a6b065524f7a305affb3
parent0bdcb04c7d9c72bf9071b4a3d4ffc3d37ddad89e (diff)
downloadpostgresql-2e947ba977eba1c0c31a2981d090b7b1897c49c2.tar.gz
postgresql-2e947ba977eba1c0c31a2981d090b7b1897c49c2.zip
Remove unnecessary row ordering dependency in pg_rewind test suite.
t/002_databases.pl was expecting to see a specific physical order of the rows in pg_database. I broke that in HEAD with commit 01e386a325549b77, but I'd say it's a pretty fragile test methodology in any case, so fix it in 9.5 as well.
-rw-r--r--src/bin/pg_rewind/t/002_databases.pl10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bin/pg_rewind/t/002_databases.pl b/src/bin/pg_rewind/t/002_databases.pl
index f10899d4401..20bdb4ab59d 100644
--- a/src/bin/pg_rewind/t/002_databases.pl
+++ b/src/bin/pg_rewind/t/002_databases.pl
@@ -32,13 +32,13 @@ sub run_test
# Check that the correct databases are present after pg_rewind.
check_query(
- 'SELECT datname FROM pg_database',
- qq(template1
-template0
-postgres
+ 'SELECT datname FROM pg_database ORDER BY 1',
+ qq(beforepromotion
inmaster
-beforepromotion
+postgres
standby_afterpromotion
+template0
+template1
),
'database names');