| 124 | }; |
| 125 | |
| 126 | int test_dynamic_node_properties() { |
| 127 | |
| 128 | std::string recv_address("127.0.0.1:0"); |
| 129 | test_server server(recv_address); |
| 130 | proton::container c(server); |
| 131 | std::thread thread_recv([&c]() -> void { c.run(); }); |
| 132 | |
| 133 | // wait until listener is ready |
| 134 | std::unique_lock<std::mutex> lk(m); |
| 135 | cv.wait(lk, [] { return listener_ready; }); |
| 136 | |
| 137 | std::string send_address = "127.0.0.1:" + std::to_string(listener_port); |
| 138 | test_client client(send_address); |
| 139 | proton::container(client).run(); |
| 140 | thread_recv.join(); |
| 141 | |
| 142 | return 0; |
| 143 | } |
| 144 | |
| 145 | int test_link_name() |
| 146 | { |