Merge pull request #8890 from ctiller/fixit12

Unique-ify uds address between concurrent bm_fullstack runs
pull/8898/head
Craig Tiller 8 years ago committed by GitHub
commit eadbe86cb9
  1. 11
      test/cpp/microbenchmarks/bm_fullstack.cc

@ -128,7 +128,16 @@ class TCP : public FullstackFixture {
class UDS : public FullstackFixture {
public:
UDS(Service* service) : FullstackFixture(service, "unix:bm_fullstack") {}
UDS(Service* service) : FullstackFixture(service, MakeAddress()) {}
private:
static grpc::string MakeAddress() {
int port = grpc_pick_unused_port_or_die(); // just for a unique id - not a
// real port
std::stringstream addr;
addr << "unix:/tmp/bm_fullstack." << port;
return addr.str();
}
};
class EndpointPairFixture {

Loading…
Cancel
Save