res = FileUtils.find_file_paths(fixtures_path, target_files)
self.assertTrue(len(res) == 2)
- # "gentoo" comes first alphabetically, and so we'll traverse
- # it first. Thus, postgis.sql should be found before
- # lwpostgis.sql.
- self.assertTrue('postgis.sql' in res[0])
- self.assertTrue('lwpostgis.sql' in res[1])
+ # The order of these two is not reliable.
+ self.assertTrue('postgis.sql' in res[0] or 'postgis.sql' in res[1])
+ self.assertTrue('lwpostgis.sql' in res[0] or 'lwpostgis.sql' in res[1])
def testOnlyOneResultReturnedWhenReturnFirstTrue(self):