]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1402] Added a comment in the test
authorMarcin Siodelski <marcin@isc.org>
Thu, 14 Jan 2021 18:42:18 +0000 (19:42 +0100)
committerMarcin Siodelski <marcin@isc.org>
Thu, 14 Jan 2021 18:42:18 +0000 (19:42 +0100)
The comment explains why we set delayed-updates-limit to 10 in the tests.

src/hooks/dhcp/high_availability/tests/ha_service_unittest.cc

index 961595a08d5c3a012139da8c0e62e852e48b87a1..7fc8fef68fc0773a38471094ff63fe6e43e4771f 100644 (file)
@@ -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);