Commit eacd4d9c authored by Pieter Hintjens's avatar Pieter Hintjens

Problem: test cases were sporadically failing

Solution: increase settle time for bind/unbind tests
parent 04664f0e
...@@ -25,8 +25,10 @@ zmq_msg_init(&msg) && printf("zmq_msg_init: %s\n", zmq_strerror(errno)); \ ...@@ -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)); \ 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); memcpy(zmq_msg_data(&msg), data, size + 1);
int publicationsReceived = 0; // TODO: this code fails to meet our style guidelines, and needs rewriting
bool isSubscribed = false;
static int publicationsReceived = 0;
static bool isSubscribed = false;
int main(int, char**) { int main(int, char**) {
setup_test_environment(); setup_test_environment();
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
// This defines the settle time used in tests; raise this if we // This defines the settle time used in tests; raise this if we
// get test failures on slower systems due to binds/connects not // get test failures on slower systems due to binds/connects not
// settled. Tested to work reliably at 1 msec on a fast PC. // 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 #undef NDEBUG
#include <time.h> #include <time.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment