Skip to content

Commit 45bbcbb

Browse files
authored
Apply suggestion from @mgovers
Signed-off-by: Martijn Govers <[email protected]> Signed-off-by: Martijn Govers <[email protected]>
1 parent 53f80f4 commit 45bbcbb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/cpp_unit_tests/test_job_dispatch.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ class JobAdapterMock : public JobInterface<JobAdapterMock> {
9999
void setup_impl(MockUpdateDataset const& /*update_data*/, Idx /*scenario_idx*/) const { ++(counter_->setup_calls); }
100100
void winddown_impl() const { ++(counter_->winddown_calls); }
101101
void reset_logger_impl() {
102+
if (counter_ ==
102103
nullptr) { // this if statement may be encountered when the destructor is called on a moved object
103104
REQUIRE_MESSAGE(logger_ == nullptr,
104105
"Dangling references encountered; not all clean-ups have gone correctly");

0 commit comments

Comments
 (0)