Be more generous with reading delay in unittest
authorChristian Herdtweck <christian.herdtweck@intra2net.com>
Fri, 1 Dec 2017 15:26:55 +0000 (16:26 +0100)
committerChristian Herdtweck <christian.herdtweck@intra2net.com>
Fri, 1 Dec 2017 15:29:56 +0000 (16:29 +0100)
test/test_log_read.py

index 642eba7..7930b06 100644 (file)
@@ -199,7 +199,7 @@ class LogReadTester(unittest.TestCase):
                         print('stop since have {0} reads'.format(counter))
                         break
             print('time diffs in us: {0}'.format(time_diffs))
-            self.assertTrue(max(time_diffs) < 1000., 'read took more than 1ms!')
+            self.assertTrue(max(time_diffs) < 1500., 'read took more than 1.5ms!')
 
     def test_line_read(self):
         """ write partial lines, full lines and multiple lines """