Skip to content

Commit

Permalink
fix(PollSetTest::tesPollClosedServer): connect synchronously
Browse files Browse the repository at this point in the history
  • Loading branch information
aleks-f committed Oct 23, 2023
1 parent 6a9d660 commit 8552996
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"${POCO_BASE}/JWT/include",
"${POCO_BASE}/Redis/include",
"${POCO_BASE}/MongoDB/include",
"${POCO_BASE}/ApacheConnector/include"
"${POCO_BASE}/ApacheConnector/include",
"/usr/include"
]
},
"configurations": [
Expand Down
5 changes: 3 additions & 2 deletions Net/testsuite/src/PollSetTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ void PollSetTest::testPollClosedServer()
{
EchoServer echoServer1;
EchoServer echoServer2;

StreamSocket ss1(SocketAddress::IPv4);
StreamSocket ss2(SocketAddress::IPv4);

Expand All @@ -385,8 +386,8 @@ void PollSetTest::testPollClosedServer()

assertEqual(0, static_cast<int>(ps.poll(Timespan(100)).size()));

ss1.connectNB(SocketAddress("127.0.0.1", echoServer1.port()));
ss2.connectNB(SocketAddress("127.0.0.1", echoServer2.port()));
ss1.connect(SocketAddress("127.0.0.1", echoServer1.port()));
ss2.connect(SocketAddress("127.0.0.1", echoServer2.port()));

std::string str = "HELLO";
int len = static_cast<int>(str.length());
Expand Down

0 comments on commit 8552996

Please sign in to comment.