Skip to content

Commit

Permalink
Fix test case for Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-ludwig committed Feb 14, 2024
1 parent c7786fa commit bec4cf3
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions tests/vibe.http.client.1389/source/app.d
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,15 @@ shared static this()
auto url = "http://"~serverAddr.toString;
logInfo(url);

auto cs = new HTTPClientSettings;
cs.networkInterface = resolveHost("127.0.0.1");
auto res = requestHTTP(url, null, cs).bodyReader.readAllUTF8();
assert(res == "local", "Unexpected reply: "~res);
string res;

version (Windows) {}
else {
auto cs = new HTTPClientSettings;
cs.networkInterface = resolveHost("127.0.0.1");
res = requestHTTP(url, null, cs).bodyReader.readAllUTF8();
assert(res == "local", "Unexpected reply: "~res);
}

auto cs2 = new HTTPClientSettings;
cs2.networkInterface = resolveHost(externalAddr.toAddressString());
Expand Down

0 comments on commit bec4cf3

Please sign in to comment.