Randomize the Unix socket name in AsyncSocketTest.SendMessageAncillaryData test to avoid collisions.
Summary:
Our test framework reports frequent failures of AsyncSocketTest.SendMessageAncillaryData. According to the logs the socket fails to bind:
folly/io/async/test/AsyncSocketTest2.cpp:3098: Failure
Expected: (bind(lfd, (struct sockaddr*)&addr, sizeof(addr))) != (-1), actual: -1 vs -1
Bind failed: 98
This diff adds the socket name randomization to avoid name collisions between tests running concurrently on the same test box.
Reviewed By: yfeldblum
Differential Revision:
D4758942
fbshipit-source-id:
6066dbc18222a4521c40b2ff218cb7dab8bd789d