diff --git a/test/integration/assets/tiles/sparse204 b/test/integration/assets/tiles/sparse204 new file mode 120000 index 0000000000..9f684a7754 --- /dev/null +++ b/test/integration/assets/tiles/sparse204 @@ -0,0 +1 @@ +sparse \ No newline at end of file diff --git a/test/integration/assets/tiles/sparse204/0-0-0.mvt b/test/integration/assets/tiles/sparse204/0-0-0.mvt deleted file mode 100644 index 6cf3d29de9..0000000000 Binary files a/test/integration/assets/tiles/sparse204/0-0-0.mvt and /dev/null differ diff --git a/test/integration/assets/tiles/sparse204/0-0-0.png b/test/integration/assets/tiles/sparse204/0-0-0.png deleted file mode 100644 index 9031ca5397..0000000000 Binary files a/test/integration/assets/tiles/sparse204/0-0-0.png and /dev/null differ diff --git a/test/integration/assets/tiles/sparse204/1-0-0.mvt b/test/integration/assets/tiles/sparse204/1-0-0.mvt deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/test/integration/assets/tiles/sparse204/1-0-0.png b/test/integration/assets/tiles/sparse204/1-0-0.png deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/test/integration/assets/tiles/sparse204/1-0-1.mvt b/test/integration/assets/tiles/sparse204/1-0-1.mvt deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/test/integration/assets/tiles/sparse204/1-0-1.png b/test/integration/assets/tiles/sparse204/1-0-1.png deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/test/integration/assets/tiles/sparse204/1-1-0.mvt b/test/integration/assets/tiles/sparse204/1-1-0.mvt deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/test/integration/assets/tiles/sparse204/1-1-0.png b/test/integration/assets/tiles/sparse204/1-1-0.png deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/test/integration/assets/tiles/sparse204/1-1-1.mvt b/test/integration/assets/tiles/sparse204/1-1-1.mvt deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/test/integration/assets/tiles/sparse204/1-1-1.png b/test/integration/assets/tiles/sparse204/1-1-1.png deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/test/integration/render/run_render_tests.ts b/test/integration/render/run_render_tests.ts index b08a9a420d..5d23a492be 100644 --- a/test/integration/render/run_render_tests.ts +++ b/test/integration/render/run_render_tests.ts @@ -990,12 +990,22 @@ async function executeRenderTests() { '--disable-web-security' ]}); - const server = http.createServer( - st({ - path: 'test/integration/assets', - cors: true, - }) - ); + const mount = st({ + path: 'test/integration/assets', + cors: true, + passthrough: true, + }); + const server = http.createServer((req, res) => { + mount(req, res, () => { + if (req.url.includes('/sparse204/1-')) { + res.writeHead(204); + res.end(''); + } else { + res.writeHead(404); + res.end(''); + } + }); + }); const mvtServer = http.createServer( st({