From: Marcin Siodelski Date: Thu, 14 Jan 2021 18:42:18 +0000 (+0100) Subject: [#1402] Added a comment in the test X-Git-Tag: Kea-1.9.4~65 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b3be2afd6cc636cd6d022d279015ad5ba1dc6a8;p=thirdparty%2Fkea.git [#1402] Added a comment in the test The comment explains why we set delayed-updates-limit to 10 in the tests. --- diff --git a/src/hooks/dhcp/high_availability/tests/ha_service_unittest.cc b/src/hooks/dhcp/high_availability/tests/ha_service_unittest.cc index 961595a08d..7fc8fef68f 100644 --- a/src/hooks/dhcp/high_availability/tests/ha_service_unittest.cc +++ b/src/hooks/dhcp/high_availability/tests/ha_service_unittest.cc @@ -769,6 +769,10 @@ public: // server 1. HAConfigPtr config_storage = createValidConfiguration(); config_storage->setWaitBackupAck(wait_backup_ack); + // Let's override the default value. The lower value makes it easier + // for some unit tests to simulate the server's overflow. Simulating it + // requires appending leases to the backlog. It is easier to add 10 + // than 100. config_storage->setDelayedUpdatesLimit(10); setBasicAuth(config_storage);