Skip to content
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

Properly delete SDK requests #718

Merged
merged 3 commits into from
Sep 23, 2019

Conversation

bastei
Copy link
Contributor

@bastei bastei commented Sep 23, 2019

The changes of #711 don't have an effect as requests[url] is set to an empty array after a failed fetch which evaluates to true for all following fetches. It has to be set to something evaluating to false instead. I added a test for the scenario.

Additionally, I activated the other getSDK tests. As getSDK() uses global variables, the tests have to be serial.

We test for 'requests[url]' which is true for an
empty array, so reset it to null after a failed
fetch.
As we use shared global variables in getSDK
the tests can't be run concurrently, which
is the default for AVA.
@cookpete cookpete merged commit df43f46 into cookpete:master Sep 23, 2019
@cookpete
Copy link
Owner

Nice work 👍 I think I was trying to be too clever when trying to avoid the use of delete in the original PR. Apologies!

@bastei bastei deleted the fix-getsdk-errorhandling-2 branch September 23, 2019 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants