Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
eacd4d9c
Commit
eacd4d9c
authored
Dec 23, 2014
by
Pieter Hintjens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Problem: test cases were sporadically failing
Solution: increase settle time for bind/unbind tests
parent
04664f0e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
test_disconnect_inproc.cpp
tests/test_disconnect_inproc.cpp
+4
-2
testutil.hpp
tests/testutil.hpp
+1
-1
No files found.
tests/test_disconnect_inproc.cpp
View file @
eacd4d9c
...
...
@@ -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
();
...
...
tests/testutil.hpp
View file @
eacd4d9c
...
...
@@ -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
1
0 // In msec
#define SETTLE_TIME
5
0 // In msec
#undef NDEBUG
#include <time.h>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment