You might think "What better to do than spend the Friday night debugging Swift on Linux, eh?" -and you're absolutely right. I spent some time debugging the issue with Linux tests and I narrowed it down to one line. Try to run this line in your REPL:
So the problem is that for some reason we can't fetch the data from the interwebz using Foundation on Linux. The error suggests that the reason should be in this file, possible in this function. I didn't really have time for a bigger investigation but probably radar or issue or (even a fix) should be filled.
The solution, for now, is to use wget -O fileName fileUrl. I've checked both tests on macOS and Ubuntu 17~ and it looks good, but we'll see how the CI reacts π
Hey! This should help in #161 with Linux tests.
You might think "What better to do than spend the Friday night debugging Swift on Linux, eh?" -and you're absolutely right. I spent some time debugging the issue with Linux tests and I narrowed it down to one line. Try to run this line in your REPL:
And you should see something similar to:
So the problem is that for some reason we can't fetch the data from the interwebz using
Foundation
on Linux. The error suggests that the reason should be in this file, possible in this function. I didn't really have time for a bigger investigation but probably radar or issue or (even a fix) should be filled.The solution, for now, is to use
wget -O fileName fileUrl
. I've checked both tests on macOS and Ubuntu 17~ and it looks good, but we'll see how the CI reacts πLet me know what do you think about this one ;-)