[Issue 14938] New: std.net.curl tests should use localhost or stub any networking
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Aug 19 17:11:31 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14938
Issue ID: 14938
Summary: std.net.curl tests should use localhost or stub any
networking
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: enhancement
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: code at dawg.eu
Test coverage for std.net.curl is pretty bad b/c the network tests aren't run
regularly. The main reason is that they actually request remote hosts (there is
even a test app running on d-lang.appspot.com).
It would be much better to either stub curl for the unittests or at least use a
localhost server (could be a simply as a TCP listener logging the requests for
and fed with responses by the test).
--
More information about the Digitalmars-d-bugs
mailing list