Skip to content

Commit

Permalink
Renamed test_connect_delay to test_immediate
Browse files Browse the repository at this point in the history
* The ZMQ_CONNECT_DELAY option was renamed to ZMQ_IMMEDIATE
  • Loading branch information
hintjens committed Sep 20, 2013
1 parent 4298f71 commit fef4fa8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ tests/test_invalid_rep
tests/test_msg_flags
tests/test_ts_context
tests/test_connect_resolve
tests/test_connect_delay
tests/test_immediate
tests/test_term_endpoint
tests/test_router_mandatory
tests/test_disconnect_inproc
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ endif()
enable_testing()
set(tests
test_system
test_connect_delay
test_immediate
test_connect_resolve
test_ctx_destroy
test_ctx_options
Expand Down
4 changes: 2 additions & 2 deletions tests/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ noinst_PROGRAMS = test_system \
test_invalid_rep \
test_msg_flags \
test_connect_resolve \
test_connect_delay \
test_immediate \
test_last_endpoint \
test_term_endpoint \
test_linger \
Expand Down Expand Up @@ -59,7 +59,7 @@ test_invalid_rep_SOURCES = test_invalid_rep.cpp
test_linger_SOURCES = test_linger.cpp
test_msg_flags_SOURCES = test_msg_flags.cpp
test_connect_resolve_SOURCES = test_connect_resolve.cpp
test_connect_delay_SOURCES = test_connect_delay.cpp
test_immediate_SOURCES = test_immediate.cpp
test_last_endpoint_SOURCES = test_last_endpoint.cpp
test_term_endpoint_SOURCES = test_term_endpoint.cpp
test_monitor_SOURCES = test_monitor.cpp
Expand Down
6 changes: 3 additions & 3 deletions tests/test_connect_delay.cpp → tests/test_immediate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ int main (void)

// Set the key flag
val = 1;
rc = zmq_setsockopt (from, ZMQ_DELAY_ATTACH_ON_CONNECT, &val, sizeof(val));
rc = zmq_setsockopt (from, ZMQ_IMMEDIATE, &val, sizeof(val));
assert (rc == 0);

// Connect to the invalid socket
Expand Down Expand Up @@ -170,9 +170,9 @@ int main (void)
rc = zmq_setsockopt (frontend, ZMQ_LINGER, &zero, sizeof (zero));
assert (rc == 0);

// Frontend connects to backend using DELAY_ATTACH_ON_CONNECT
// Frontend connects to backend using IMMEDIATE
int on = 1;
rc = zmq_setsockopt (frontend, ZMQ_DELAY_ATTACH_ON_CONNECT, &on, sizeof (on));
rc = zmq_setsockopt (frontend, ZMQ_IMMEDIATE, &on, sizeof (on));
assert (rc == 0);
rc = zmq_bind (backend, "tcp://127.0.0.1:5560");
assert (rc == 0);
Expand Down

0 comments on commit fef4fa8

Please sign in to comment.