Skip to content

Commit d6c8de2

Browse files
authored
Merge branch 'gz-transport12' into srmainwaring/12/node-abstract-request
2 parents a86e517 + a1b1559 commit d6c8de2

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

include/gz/transport/Discovery.hh

+3-4
Original file line numberDiff line numberDiff line change
@@ -732,16 +732,15 @@ namespace gz
732732
std::lock_guard<std::mutex> lock(this->mutex);
733733
if (!this->initialized)
734734
{
735-
++this->numHeartbeatsUninitialized;
736-
if (this->numHeartbeatsUninitialized == 2)
735+
if (this->numHeartbeatsUninitialized == 2u)
737736
{
738-
// We consider the discovery initialized after two cycles of
739-
// heartbeats sent.
737+
// We consider discovery initialized after two heartbeat cycles.
740738
this->initialized = true;
741739

742740
// Notify anyone waiting for the initialization phase to finish.
743741
this->initializedCv.notify_all();
744742
}
743+
++this->numHeartbeatsUninitialized;
745744
}
746745

747746
this->timeNextHeartbeat = std::chrono::steady_clock::now() +

log/test/integration/CMakeLists.txt

+7-4
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,15 @@ if (HAVE_GZ_TOOLS)
7272
ruby ${CMAKE_CURRENT_SOURCE_DIR}/gz_log_record_no_overwrite.rb
7373
)
7474

75-
add_test(gz_log_record_force
76-
ruby ${CMAKE_CURRENT_SOURCE_DIR}/gz_log_record_force.rb
77-
)
75+
# Test disabled
76+
# add_test(gz_log_record_force
77+
# ruby ${CMAKE_CURRENT_SOURCE_DIR}/gz_log_record_force.rb
78+
# )
79+
7880
set_tests_properties(
7981
gz_log_record_no_overwrite
80-
gz_log_record_force
82+
# Test disabled
83+
# gz_log_record_force
8184
PROPERTIES
8285
ENVIRONMENT
8386
"GZ_CONFIG_PATH=${GZ_CONFIG_PATH};GZ_TRANSPORT_LOG_SQL_PATH=${PROJECT_SOURCE_DIR}/log/sql"

0 commit comments

Comments
 (0)