Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit a9246fb

Browse files
committed
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 01e386a, but I'd say it's a pretty fragile test methodology in any case, so fix it in 9.5 as well.
1 parent 71dd092 commit a9246fb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/bin/pg_rewind/t/002_databases.pl

+5-5
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ sub run_test
3232

3333
# Check that the correct databases are present after pg_rewind.
3434
check_query(
35-
'SELECT datname FROM pg_database',
36-
qq(template1
37-
template0
38-
postgres
35+
'SELECT datname FROM pg_database ORDER BY 1',
36+
qq(beforepromotion
3937
inmaster
40-
beforepromotion
38+
postgres
4139
standby_afterpromotion
40+
template0
41+
template1
4242
),
4343
'database names');
4444

0 commit comments

Comments
 (0)