mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-12 10:33:52 +01:00
Problem: test cases were sporadically failing
Solution: increase settle time for bind/unbind tests
This commit is contained in:
parent
04664f0ef7
commit
eacd4d9cba
@ -25,8 +25,10 @@ zmq_msg_init(&msg) && printf("zmq_msg_init: %s\n", zmq_strerror(errno)); \
|
||||
zmq_msg_init_size (&msg, size + 1) && printf("zmq_msg_init_size: %s\n",zmq_strerror(errno)); \
|
||||
memcpy(zmq_msg_data(&msg), data, size + 1);
|
||||
|
||||
int publicationsReceived = 0;
|
||||
bool isSubscribed = false;
|
||||
// TODO: this code fails to meet our style guidelines, and needs rewriting
|
||||
|
||||
static int publicationsReceived = 0;
|
||||
static bool isSubscribed = false;
|
||||
|
||||
int main(int, char**) {
|
||||
setup_test_environment();
|
||||
|
@ -27,7 +27,7 @@
|
||||
// This defines the settle time used in tests; raise this if we
|
||||
// get test failures on slower systems due to binds/connects not
|
||||
// settled. Tested to work reliably at 1 msec on a fast PC.
|
||||
#define SETTLE_TIME 10 // In msec
|
||||
#define SETTLE_TIME 50 // In msec
|
||||
|
||||
#undef NDEBUG
|
||||
#include <time.h>
|
||||
|
Loading…
Reference in New Issue
Block a user