Problem: test cases were sporadically failing

Solution: increase settle time for bind/unbind tests
This commit is contained in:
Pieter Hintjens 2014-12-23 15:21:22 +01:00
parent 04664f0ef7
commit eacd4d9cba
2 changed files with 5 additions and 3 deletions

View File

@ -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();

View File

@ -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>