1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
Description: 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.
Author: Thomas Goirand <zigo@debian.org>
Forwarded: no
Last-Update: 2016-07-19
--- python-eventlet-0.19.0.orig/tests/zmq_test.py
+++ python-eventlet-0.19.0/tests/zmq_test.py
@@ -448,7 +448,7 @@ class TestUpstreamDownStream(tests.Limit
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.Limit
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):
|