mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 17:41:45 +00:00
Fix nanomsg tests
This commit is contained in:
committed by
Mohammad Al-Turany
parent
07b760218f
commit
c78b7e4cfa
@@ -15,6 +15,9 @@
|
||||
#include "FairMQLogger.h"
|
||||
#include "FairMQTestPush.h"
|
||||
|
||||
#include <chrono>
|
||||
#include <thread>
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
reinit_logger(false);
|
||||
@@ -60,6 +63,12 @@ int main(int argc, char** argv)
|
||||
testPush.ChangeState("RUN");
|
||||
testPush.WaitForEndOfState("RUN");
|
||||
|
||||
// nanomsg does not implement the LINGER option. Give the sockets some time before their queues are terminated
|
||||
if (transport == "nanomsg")
|
||||
{
|
||||
std::this_thread::sleep_for(std::chrono::seconds(1));
|
||||
}
|
||||
|
||||
testPush.ChangeState("RESET_TASK");
|
||||
testPush.WaitForEndOfState("RESET_TASK");
|
||||
|
||||
|
Reference in New Issue
Block a user