-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
regression test for mapbox-gl-native#7241 #188
Conversation
9633a67
to
989fb6d
Compare
@jfirebaugh Strangely enough this test case also succeeds against master although this is exactly the case that mapbox/mapbox-gl-native#7241 fixes. |
@ivovandongen It looks like the unit test in #7242 also passes without the fix present. In this case, I'm seeing Is there some additional setup needed to trigger the issue that these tests are missing? |
@jfirebaugh I've been looking into this. I've fixed the unit test, so it fails on master in the map test. It turns out there is a specific sequence that needs to happen so that the cache is filled with invalid tiles. To reproduce this in a render test I need to be able to call render after certain steps so that the tiles are pruned and put into cache. However, I can't seem to do that right now as the render function takes a callback function as a second argument:
|
@ivovandongen So the sequence is:
? You should be able to simulate that same sequence in a render test using the |
@jfirebaugh That seems to be exactly the test I've implemented in 989fb6d. However, it doesn't seem to render on wait operations though (verified with some log statements). I see in https://github.com/mapbox/mapbox-gl-native/blob/424c05be5e3fbd45e52d8e3a6cf048cbd5703b8d/platform/node/test/suite_implementation.js#L68 that there is a render call in wait. However, after a |
Looks like there are a couple of issues:
I'll push a fix for these issues to the branch. |
989fb6d
to
66397c8
Compare
Fixes #187