summaryrefslogtreecommitdiff
path: root/test/HttpServerTest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/HttpServerTest.cc')
-rw-r--r--test/HttpServerTest.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/HttpServerTest.cc b/test/HttpServerTest.cc
index 8667b827..7f457b7f 100644
--- a/test/HttpServerTest.cc
+++ b/test/HttpServerTest.cc
@@ -22,11 +22,10 @@ namespace {
std::unique_ptr<HttpServer> performHttpRequest(SocketCore& server,
std::string request)
{
- std::pair<std::string, uint16_t> addr;
- server.getAddrInfo(addr);
+ auto endpoint = server.getAddrInfo();
SocketCore client;
- client.establishConnection("localhost", addr.second);
+ client.establishConnection("localhost", endpoint.port);
while (!client.isWritable(0)) {
}