[Python-modules-commits] [python-eventlet] 05/19: Allow more busy CPU

Thomas Goirand zigo at moszumanska.debian.org
Tue Nov 14 21:39:21 UTC 2017


This is an automated email from the git hooks/post-receive script.

zigo pushed a commit to branch master
in repository python-eventlet.

commit 986d37bfaee7fc148694bb3f15dd41515f3e2f6d
Author: Thomas Goirand <zigo at debian.org>
Date:   Fri Aug 4 21:47:16 2017 +0200

    Allow more busy CPU
    
     The tests assume a fast CPU, but under my VMs, the tests are just failing
     with the CPU being more than 10% busy.
    Forwarded: no
    Last-Update: 2016-07-19
---
 tests/zmq_test.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/zmq_test.py b/tests/zmq_test.py
index 2910c11..e925038 100644
--- a/tests/zmq_test.py
+++ b/tests/zmq_test.py
@@ -448,7 +448,7 @@ class TestUpstreamDownStream(tests.LimitedTestCase):
         self.sockets.append(sock)
         sock.bind_to_random_port("tcp://127.0.0.1")
         sleep()
-        tests.check_idle_cpu_usage(0.2, 0.1)
+        tests.check_idle_cpu_usage(0.2, 0.2)
 
     @tests.skip_unless(zmq_supported)
     def test_cpu_usage_after_pub_send_or_dealer_recv(self):
@@ -460,14 +460,14 @@ class TestUpstreamDownStream(tests.LimitedTestCase):
         sub.setsockopt(zmq.SUBSCRIBE, b"")
         sleep()
         pub.send(b'test_send')
-        tests.check_idle_cpu_usage(0.2, 0.1)
+        tests.check_idle_cpu_usage(0.2, 0.2)
 
         sender, receiver, _port = self.create_bound_pair(zmq.DEALER, zmq.DEALER)
         sleep()
         sender.send(b'test_recv')
         msg = receiver.recv()
         self.assertEqual(msg, b'test_recv')
-        tests.check_idle_cpu_usage(0.2, 0.1)
+        tests.check_idle_cpu_usage(0.2, 0.2)
 
 
 class TestQueueLock(tests.LimitedTestCase):

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-eventlet.git



More information about the Python-modules-commits mailing list