summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/bin/dhcp4/tests/kea_controller_unittest.cc2
-rw-r--r--src/bin/dhcp6/tests/kea_controller_unittest.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/dhcp4/tests/kea_controller_unittest.cc b/src/bin/dhcp4/tests/kea_controller_unittest.cc
index d164a23678..82ca8fa940 100644
--- a/src/bin/dhcp4/tests/kea_controller_unittest.cc
+++ b/src/bin/dhcp4/tests/kea_controller_unittest.cc
@@ -230,7 +230,7 @@ public:
void runTimersWithTimeout(const IOServicePtr& io_service, const long timeout_ms,
std::function<bool()> cond = std::function<bool()>()) {
IntervalTimer timer(*io_service);
- std::atomic<bool> stopped = false;
+ std::atomic<bool> stopped(false);
timer.setup([&io_service, &stopped]() {
stopped = true;
io_service->stop();
diff --git a/src/bin/dhcp6/tests/kea_controller_unittest.cc b/src/bin/dhcp6/tests/kea_controller_unittest.cc
index d932d42236..bb09ca3903 100644
--- a/src/bin/dhcp6/tests/kea_controller_unittest.cc
+++ b/src/bin/dhcp6/tests/kea_controller_unittest.cc
@@ -217,7 +217,7 @@ public:
void runTimersWithTimeout(const IOServicePtr& io_service, const long timeout_ms,
std::function<bool()> cond = std::function<bool()>()) {
IntervalTimer timer(*io_service);
- std::atomic<bool> stopped = false;
+ std::atomic<bool> stopped(false);
timer.setup([&io_service, &stopped]() {
stopped = true;
io_service->stop();