Fixes RasterSource tests

Puppeteer/TestSuite seems to have
problems with webworker so threads is set
to 0
This commit is contained in:
Kai Volland
2019-03-18 10:33:05 +01:00
parent 58cebcc97f
commit 912fb03564

View File

@@ -9,6 +9,7 @@ const raster = new RasterSource({
url: '/data/tiles/osm/{z}/{x}/{y}.png',
transition: 0
})],
threads: 0, // Avoid using workers to work with puppeteer
operation: function(pixels) {
const pixel = pixels[0];
const red = pixel[0];