]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[master] Fix for 3387, asiodns::IOFetch unit test failing
authorThomas Markwalder <tmark@isc.org>
Fri, 25 Apr 2014 15:15:39 +0000 (11:15 -0400)
committerThomas Markwalder <tmark@isc.org>
Fri, 25 Apr 2014 15:15:39 +0000 (11:15 -0400)
The unit test, IOFetchTest.TcpSendReceive65535, was failing
routinely on a NetBSD VM.  The VM was running so slowly that
this test was timing out.  Typically it takes less than
500ms. On this VM it was taking over 4.5s and then hitting
a safety valve timeout.  That timeout value was increased.

src/lib/asiodns/tests/io_fetch_unittest.cc

index 7f79a528f8365a1d93d1994fda677e559079231c..54b134b1e69b66d509b98f505e6f88efc5a4a5fe 100644 (file)
@@ -106,7 +106,7 @@ public:
         udp_fetch_(IOFetch::UDP, service_, question_, IOAddress(TEST_HOST),
             TEST_PORT, result_buff_, this, 100),
         tcp_fetch_(IOFetch::TCP, service_, question_, IOAddress(TEST_HOST),
-            TEST_PORT, result_buff_, this, (16 * SEND_INTERVAL)),
+            TEST_PORT, result_buff_, this, (24 * SEND_INTERVAL)),
                                         // Timeout interval chosen to ensure no timeout
         protocol_(IOFetch::TCP),        // for initialization - will be changed
         cumulative_(0),