Browse Source

Wait for the actual DOWN timer in the owner-release test

master
evgeny 7 days ago
parent
commit
a32eef9ed1
  1. 2
      tests/test_etcp_server_lifecycle.c

2
tests/test_etcp_server_lifecycle.c

@ -130,7 +130,7 @@ static void check_owner(int release) {
CHECK(node_conn_direct_open(&inst, 42, owner_cb, NULL, &second, NULL) == NCD_REUSED);
CHECK(node_conn_direct_handle_count(conn) == 2);
node_conn_direct_close(handle); CHECK(node_conn_direct_handle_count(conn) == 1 && !conn->close_requested);
node_conn_direct_close(second); test_clock_run_for(inst.ua, 10);
node_conn_direct_close(second); test_clock_next_timer(inst.ua);
}
CHECK(deleted == 1 && !closed && !inst.connections->count);
teardown(); DEBUG_INFO(DEBUG_CATEGORY_DEBUG, "PASS DOWN timeout with local owner release_on_down=%d", release);

Loading…
Cancel
Save