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
4904bf71
Unverified
Commit
4904bf71
authored
Jun 23, 2019
by
Luca Boccassi
Committed by
GitHub
Jun 23, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3550 from jean-airoldie/heartbeat_test
Problem: missing heartbeat test for draft sockets
parents
fcf828d3
241b073f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
test_heartbeats.cpp
tests/test_heartbeats.cpp
+16
-0
No files found.
tests/test_heartbeats.cpp
View file @
4904bf71
...
...
@@ -368,6 +368,11 @@ DEFINE_TESTS (pull, push, ZMQ_PULL, ZMQ_PUSH)
DEFINE_TESTS
(
sub
,
pub
,
ZMQ_SUB
,
ZMQ_PUB
)
DEFINE_TESTS
(
pair
,
pair
,
ZMQ_PAIR
,
ZMQ_PAIR
)
#ifdef ZMQ_BUILD_DRAFT_API
DEFINE_TESTS
(
gather
,
scatter
,
ZMQ_GATHER
,
ZMQ_SCATTER
)
DEFINE_TESTS
(
client
,
server
,
ZMQ_CLIENT
,
ZMQ_SERVER
)
#endif
const
int
deciseconds_per_millisecond
=
100
;
const
int
heartbeat_ttl_max
=
(
UINT16_MAX
+
1
)
*
deciseconds_per_millisecond
-
1
;
...
...
@@ -441,5 +446,16 @@ int main (void)
RUN_TEST
(
test_heartbeat_notimeout_sub_pub_with_curve
);
RUN_TEST
(
test_heartbeat_notimeout_pair_pair_with_curve
);
#ifdef ZMQ_BUILD_DRAFT_API
RUN_TEST
(
test_heartbeat_ttl_client_server
);
RUN_TEST
(
test_heartbeat_ttl_gather_scatter
);
RUN_TEST
(
test_heartbeat_notimeout_client_server
);
RUN_TEST
(
test_heartbeat_notimeout_gather_scatter
);
RUN_TEST
(
test_heartbeat_notimeout_client_server_with_curve
);
RUN_TEST
(
test_heartbeat_notimeout_gather_scatter_with_curve
);
#endif
return
UNITY_END
();
}
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