mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-10 07:56:09 +00:00
Increase sleep in test to fix flakiness under CPU load.
This commit is contained in:
parent
7b2e37dc90
commit
f86bded783
@ -110,7 +110,7 @@ void worker1(void* s)
|
|||||||
|
|
||||||
if (c == 0)
|
if (c == 0)
|
||||||
{
|
{
|
||||||
msleep(10);
|
msleep(100);
|
||||||
rc = zmq_send_const(s,&worker_id, 1, 0);
|
rc = zmq_send_const(s,&worker_id, 1, 0);
|
||||||
assert(rc == 1);
|
assert(rc == 1);
|
||||||
}
|
}
|
||||||
@ -136,7 +136,7 @@ void worker2(void* s)
|
|||||||
|
|
||||||
if (c == 0)
|
if (c == 0)
|
||||||
{
|
{
|
||||||
msleep(10);
|
msleep(100);
|
||||||
rc = zmq_send_const(s,&worker_id, 1, 0);
|
rc = zmq_send_const(s,&worker_id, 1, 0);
|
||||||
assert(rc == 1);
|
assert(rc == 1);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user