mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-20 02:40:03 +02:00
short sleep in socket test
This commit is contained in:
parent
0224dccd2e
commit
aff6e30b65
@ -29,6 +29,7 @@ TEST_CASE("The server recive the same message as we send", "[support]") {
|
||||
std::copy(std::begin(m), std::end(m), sent_message.data());
|
||||
|
||||
auto s = std::async(std::launch::async, server);
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(100));
|
||||
auto client = sls::DetectorSocket("localhost", 1950);
|
||||
client.sendData(sent_message.data(), sent_message.size());
|
||||
client.receiveData(received_message.data(), received_message.size());
|
||||
|
Loading…
x
Reference in New Issue
Block a user