Skip to content
  1. Apr 16, 2013
    • Carl Harris's avatar
      reduce timing sensitivity in SocketAppenderTest · 5cd256d6
      Carl Harris authored
      In the receiveMessage and receiveWithContext tests, only ten
      milliseconds were allowed for the appender to dispatch the message over
      the socket.  Practical experience suggests that on the build system, the
      actual latency is on the order of hundreds of milliseconds.  I changed
      the allowed wait time to 1000 milliseconds.  This should have little
      impact on test duration, as the test will finish as soon as the latch
      we're awaiting is updated.
      
      The number of iterations for the loop in lateServerLaunch was derived
      from the delay allowed for the appender latch.  The new value for the
      delay resulted in an iteration count of one.  I changed this test to
      simply use a fixed iteration count.
      5cd256d6
    • Carl Harris's avatar
    • Carl Harris's avatar
      reduce timing sensitivity in SocketConnectorBaseTest · bec02c08
      Carl Harris authored
      testConnectionFails was expecting the connector thread to exit after
      being interrupted, with latency no greater than the configured delay
      between connection attempts.  However, the call to
      SocketFactory.createSocket may not return immediately on interrupt.  
      
      Now, we allow 4 * DELAY for the thread to exit. This commit should allow
      more than enough tolerance, but (as it generally has no effect on the
      run duration of the test) we could increase the allowed delay even
      further if it proves too sensitive to timing variations on the build
      system.
      bec02c08
    • Ceki Gulcu's avatar
      56e8ab21
    • Ceki Gulcu's avatar
  2. Apr 15, 2013
  3. Apr 14, 2013
  4. Apr 12, 2013
  5. Apr 11, 2013