Conversation
The example in the docs cause a random CI failure. Change it so that it doesn't rely on example.com anymore. Add a timeout to avoid hanging.
tnull
left a comment
There was a problem hiding this comment.
Hmm, rather than spawning a local HTTP server, why not just do what is done in the other examples further above and simply add a no_run flag to the beginning of the example? Seems the fix could be a +1/-1 diff here?
Yeah I did think of that, but I just didn't like the idea of "fixing" example code that occasionally doesn't run by never running it. It's not a great example if we have to tell the compiler not to actually run it. |
Well, the code is not broken, it just uses an unreliable endpoint. Also note that the doctest will still be compiled, so we will notice if the API changes and it gets stale somehow. |
|
Fair point, I prefer this fix but am happy to change it to |
|
I'm not fussed either way. Merging |
The example in the docs cause a random CI failure.
Change it so that it doesn't rely on
example.comanymore. Add a timeout to avoid hanging.Closes #434