diff options
author | luigi1111 <luigi1111w@gmail.com> | 2021-09-23 22:04:20 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2021-09-23 22:04:20 -0500 |
commit | 75ee729a3a26c7c7925078592a0a82f00648916e (patch) | |
tree | ef4ba83b233e23f553a6f7662665d85d45853d63 | |
parent | Merge pull request #7899 (diff) | |
parent | Mac: UT node server fix IP localhost by aliasing (diff) | |
download | monero-75ee729a3a26c7c7925078592a0a82f00648916e.tar.xz |
Merge pull request #7886
1b7a708 Mac: UT node server fix IP localhost by aliasing (mj-xmr)
-rw-r--r-- | tests/unit_tests/node_server.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/unit_tests/node_server.cpp b/tests/unit_tests/node_server.cpp index cab600b3d..cc7790c1a 100644 --- a/tests/unit_tests/node_server.cpp +++ b/tests/unit_tests/node_server.cpp @@ -303,6 +303,9 @@ TEST(node_server, bind_same_p2p_port) Relevant part about REUSEADDR from man: https://www.man7.org/linux/man-pages/man7/ip.7.html + + For Mac OSX, set the following alias, before running the test, or else it will fail: + sudo ifconfig lo0 alias 127.0.0.2 */ vm.find(nodetool::arg_p2p_bind_ip.name)->second = boost::program_options::variable_value(std::string("127.0.0.2"), false); vm.find(nodetool::arg_p2p_bind_port.name)->second = boost::program_options::variable_value(std::string(port), false); |