Add test to chek we still send events when errored map static tile

This commit is contained in:
Daniel García Aubert
2020-04-29 10:28:10 +02:00
parent c88a14bf43
commit 4e3ef96374
3 changed files with 43 additions and 3 deletions
+1 -2
View File
@@ -1788,11 +1788,10 @@ TestClient.prototype.getPreview = function (width, height, params = {}, callback
return callback(err);
}
this.keysToDelete['user:localhost:mapviews:global'] = 5;
let body;
switch (res.headers['content-type']) {
case 'image/png':
this.keysToDelete['user:localhost:mapviews:global'] = 5;
body = mapnik.Image.fromBytes(Buffer.from(res.body, 'binary'));
break;
case 'application/json; charset=utf-8':