Fix: Blacklist redirect #118
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Several tests were failing for me here, while the exact same code on gulp/master was somehow fine.
Superficially the errors seemed to be about flags, such as loglevel... But it was something else entirely.
Turns out an external change sabotaged a bunch of our tests here, viz. we now get a "moved permanently" (301) when fetching the blacklist, and apparently the wreck library doesn't follow redirects (by default).
I fixed the URL in this PR, perhaps the wreck options should be revisited some time.
This was pretty annoying to track down... The tests are already slightly tricky to debug because stdout and stderr are hijacked. But it becomes really problematic if a unit test depends on unrelated components, both internal (in this case, the getBlacklist module) and external (the corresponding webserver).
IMHO, it should not be possible for this kind of external change to break unit tests?