Skip to content
Snippets Groups Projects
Commit 82697bee authored by Erwin Jansen's avatar Erwin Jansen
Browse files

Accept more than one test connection.

We stopped listening for new incoming test connections, resulting in
only one test connection being allowed per run.


Test: gd/cert/run
Bug: 198296225
Change-Id: I430a9530d7cfd750c85d79abe5496aa9a2d4623c
parent f7f8468c
No related branches found
No related tags found
No related merge requests found
......@@ -97,8 +97,9 @@ std::shared_ptr<AsyncDataChannel> TestEnvironment::ConnectToRemoteServer(
void TestEnvironment::SetUpTestChannel() {
bool transport_configured = test_channel_transport_.SetUp(
test_socket_server_, [this](std::shared_ptr<AsyncDataChannel> conn_fd,
AsyncDataChannelServer*) {
AsyncDataChannelServer* server) {
LOG_INFO("Test channel connection accepted.");
server->StartListening();
if (test_channel_open_) {
LOG_WARN("Only one connection at a time is supported");
test_channel_transport_.SendResponse(conn_fd,
......
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