Merge branch 'master' into cartonik

This commit is contained in:
Daniel García Aubert
2019-04-25 14:14:16 +02:00
11 changed files with 242 additions and 55 deletions
+8 -1
View File
@@ -555,7 +555,14 @@ describe('cluster', function () {
return done(err);
}
assert.deepStrictEqual(body.rows, expected);
const sort_f = ((a, b) => {
return (a._cdb_feature_count < b._cdb_feature_count) ||
(a._cdb_feature_count === b._cdb_feature_count &&
(a.type < b.type ||
a.type === b.type && a.max_value < b.max_value));
});
assert.deepStrictEqual(body.rows.sort(sort_f), expected.sort(sort_f));
testClient.drain(done);
});
+9 -1
View File
@@ -106,7 +106,15 @@ describe('named maps static view', function() {
}
getStaticMap(function(err, img) {
assert.ok(!err);
assert.imageIsSimilarToFile(img, previewFixture('estimated'), PNG_IMAGE_TOLERANCE, done);
assert.imageIsSimilarToFile(img, previewFixture('estimated'), PNG_IMAGE_TOLERANCE, err => {
if (err) {
assert.imageIsSimilarToFile(img, previewFixture('estimated-proj5'), PNG_IMAGE_TOLERANCE, done);
}
else
{
done();
}
});
});
});
});
Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

-1
View File
@@ -13,7 +13,6 @@
PREPARE_REDIS=yes
PREPARE_PGSQL=yes
DOWNLOAD_SQL_FILES=yes
PG_PARALLEL=$(pg_config --version | (awk '{$2*=1000; if ($2 >= 9600) print 1; else print 0;}' 2> /dev/null || echo 0))
while [ -n "$1" ]; do
OPTION=$(echo "$1" | tr -d '[:space:]')