PgSqlExtendedInfoTest.initLease6 fails sporadically
This UT fails every so often because it assumes the leases fetched by PgSqlLeaseMgr::getLeases6() are ordered by address (primary key), however the query SQL does not specify an order clause:
// GET_LEASE6
{ 0, { OID_NONE },
"get_lease6",
"SELECT address, duid, valid_lifetime, "
"extract(epoch from expire)::bigint, subnet_id, pref_lifetime, "
"lease_type, iaid, prefix_len, fqdn_fwd, fqdn_rev, hostname, "
"hwaddr, hwtype, hwaddr_source, "
"state, user_context, pool_id "
"FROM lease6" }
It just so happens that Postgresql returns them ordered by address most of the time, but it isn't guaranteed.
Same is true for the corresponding MySQL query, they should both have "order by address".