Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

[node] Add request failure tests #8249

Merged
merged 4 commits into from
Apr 20, 2017
Merged

[node] Add request failure tests #8249

merged 4 commits into from
Apr 20, 2017

Conversation

tmpsantos
Copy link
Contributor

Test for timeout and when the request fails.

@tmpsantos
Copy link
Contributor Author

@bsudekum don't know why the test is crashing on Linux. I can't reproduce it locally. :-/

@tmpsantos tmpsantos force-pushed the tmpsantos-node_tests branch 2 times, most recently from 9c26e0d to 78675ac Compare April 11, 2017 16:44
@tmpsantos tmpsantos force-pushed the tmpsantos-node_tests branch 3 times, most recently from 8529cc4 to 562fe37 Compare April 19, 2017 17:48
Test for timeout and when the request fails.
Tries to simulate the workload from api-gl.
Cancels an ongoing rendering.
// FIXME: Reload the style after recreating the map. We need to find
// a better way of canceling an ongoing rendering on the core level
// without resetting the map, which is way too expensive.
map->setStyleJSON(style);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know at one point you said this might not work, is this still the case?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What was not working is map->setStyleJSON("{}").

@tmpsantos tmpsantos merged commit 1470ee7 into master Apr 20, 2017
@tmpsantos tmpsantos deleted the tmpsantos-node_tests branch April 20, 2017 15:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Node.js node-mapbox-gl-native tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants