]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[master] Corrected intermittent D2 unit test failure
authorThomas Markwalder <tmark@isc.org>
Wed, 15 Jan 2014 20:59:10 +0000 (15:59 -0500)
committerThomas Markwalder <tmark@isc.org>
Wed, 15 Jan 2014 20:59:10 +0000 (15:59 -0500)
On sluggish machines D2UpdateMgrTest.multiTransactionTimeout
failed intermittantly. A run-away test check was a bit too
stringent.

src/bin/d2/tests/d2_update_mgr_unittests.cc

index c97b744ce160220f18366dfb2a945aba436bf8e6..2711a71f9d9581a830db54e24870cb0f2c2d8bc9 100644 (file)
@@ -213,7 +213,7 @@ public:
     /// vary.
     void processAll(unsigned int timeout_millisec =
                     NameChangeTransaction::DNS_UPDATE_DEFAULT_TIMEOUT + 100,
-                    size_t max_passes = 20) {
+                    size_t max_passes = 100) {
         // Loop until all the transactions have been dequeued and run through to
         // completion.
         size_t passes = 0;
@@ -238,9 +238,9 @@ public:
             }
 
             // This is a last resort fail safe to ensure we don't go around
-            // forever. We cut it off the number of passes at 20.  This is
-            // roughly twice the number for the longest test (currently,
-            // multiTransactionTimeout).
+            // forever. We cut it off the number of passes at 100 (default
+            // value).  This is roughly ten times the number for the longest
+            // test (currently, multiTransactionTimeout).
             if (passes > max_passes) {
                 ADD_FAILURE() << "processALL failed, too many passes: "
                     << passes <<  ", total handlers executed: " << handlers;