Skip to content
Snippets Groups Projects
Commit d04c822b authored by Craig Tiller's avatar Craig Tiller
Browse files

Unique-ify uds address between concurrent bm_fullstack runs

parent 08d2d975
No related branches found
No related tags found
No related merge requests found
...@@ -128,7 +128,16 @@ class TCP : public FullstackFixture { ...@@ -128,7 +128,16 @@ class TCP : public FullstackFixture {
class UDS : public FullstackFixture { class UDS : public FullstackFixture {
public: 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 { class EndpointPairFixture {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment