Commit 1285b5cb authored by Kyle Nekritz's avatar Kyle Nekritz Committed by Facebook Github Bot

Bind to ephemeral port in tos tests.

Summary: Always using 10000 is no good for concurrent tests.

Reviewed By: Orvid

Differential Revision: D9656798

fbshipit-source-id: 4fb7e48239e42c3b2acd2cc976cb74535c573ef6
parent c043e0a8
......@@ -3515,7 +3515,7 @@ TEST(AsyncSocketTest, V6TosReflectTest) {
folly::IPAddress ip("::1");
std::vector<folly::IPAddress> serverIp;
serverIp.push_back(ip);
serverSocket->bind(serverIp, 10000);
serverSocket->bind(serverIp, 0);
serverSocket->listen(16);
folly::SocketAddress serverAddress;
serverSocket->getAddress(&serverAddress);
......@@ -3574,7 +3574,7 @@ TEST(AsyncSocketTest, V4TosReflectTest) {
folly::IPAddress ip("127.0.0.1");
std::vector<folly::IPAddress> serverIp;
serverIp.push_back(ip);
serverSocket->bind(serverIp, 10000);
serverSocket->bind(serverIp, 0);
serverSocket->listen(16);
folly::SocketAddress serverAddress;
serverSocket->getAddress(&serverAddress);
......
Markdown is supported
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