File tree 2 files changed +10
-8
lines changed
2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -732,16 +732,15 @@ namespace gz
732
732
std::lock_guard<std::mutex> lock (this ->mutex );
733
733
if (!this ->initialized )
734
734
{
735
- ++this ->numHeartbeatsUninitialized ;
736
- if (this ->numHeartbeatsUninitialized == 2 )
735
+ if (this ->numHeartbeatsUninitialized == 2u )
737
736
{
738
- // We consider the discovery initialized after two cycles of
739
- // heartbeats sent.
737
+ // We consider discovery initialized after two heartbeat cycles.
740
738
this ->initialized = true ;
741
739
742
740
// Notify anyone waiting for the initialization phase to finish.
743
741
this ->initializedCv .notify_all ();
744
742
}
743
+ ++this ->numHeartbeatsUninitialized ;
745
744
}
746
745
747
746
this ->timeNextHeartbeat = std::chrono::steady_clock::now () +
Original file line number Diff line number Diff line change @@ -72,12 +72,15 @@ if (HAVE_GZ_TOOLS)
72
72
ruby ${CMAKE_CURRENT_SOURCE_DIR} /gz_log_record_no_overwrite.rb
73
73
)
74
74
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
+
78
80
set_tests_properties (
79
81
gz_log_record_no_overwrite
80
- gz_log_record_force
82
+ # Test disabled
83
+ # gz_log_record_force
81
84
PROPERTIES
82
85
ENVIRONMENT
83
86
"GZ_CONFIG_PATH=${GZ_CONFIG_PATH} ;GZ_TRANSPORT_LOG_SQL_PATH=${PROJECT_SOURCE_DIR} /log/sql"
You can’t perform that action at this time.
0 commit comments