diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2015-09-01 15:07:17 +0300 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-04-14 13:44:08 -0700 |
commit | 204c7fee032bf8509747046b43a788366a189ae7 (patch) | |
tree | 8719b7ab8838bea52babd8bf42f2234ddc43dc9a /platform/node/test | |
parent | 18d8e80f52345a13236ae1da99b5866e7643f85b (diff) | |
download | qtlocation-mapboxgl-204c7fee032bf8509747046b43a788366a189ae7.tar.gz |
[core] Render from the main thread
Do not create a thread for the MapContext anymore.
Diffstat (limited to 'platform/node/test')
-rw-r--r-- | platform/node/test/js/map.test.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/platform/node/test/js/map.test.js b/platform/node/test/js/map.test.js index 1228900940..12b17126f9 100644 --- a/platform/node/test/js/map.test.js +++ b/platform/node/test/js/map.test.js @@ -298,7 +298,9 @@ test('Map', function(t) { t.test('returning an error', function(t) { var map = new mbgl.Map({ request: function(req, callback) { - callback(new Error('request error')); + setImmediate(function () { + callback(new Error('request error')); + }); }, }); map.load(style); |