Commit 101de06b authored by Noah Orensa's avatar Noah Orensa
Browse files

fix socket addresses in distributed_unit_test.dtest.cpp

parent 0b5a31db
#include <dtest.h>
#include <thread>
#include <dtest_core/socket.h>
......@@ -158,7 +159,7 @@ static sockaddr get_sock_addr(int fd) {
sockaddr addr;
socklen_t len = sizeof(addr);
assert(getsockname(fd, &addr, &len) != -1);
return addr;
return dtest::Socket::self_address_ipv4(dtest::Socket::get_port(addr));
dunit("distributed-unit-test", "tcp")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment