]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix random OverflowError exceptions in gate-neutron-python26 tests
authorarmando-migliaccio <amigliaccio@nicira.com>
Mon, 15 Jul 2013 18:08:13 +0000 (11:08 -0700)
committerarmando-migliaccio <amigliaccio@nicira.com>
Mon, 15 Jul 2013 19:56:27 +0000 (12:56 -0700)
commit14d393906a554531f1f6bcea02a42fc2e28676cf
tree8c33c384f1422c9a8c73cf50d8bc0ad936190b42
parent69ebd0870aada3b58f1f1c39813ec1a62ce26b6e
Fix random OverflowError exceptions in gate-neutron-python26 tests

These errors seem to be linked to the NEC plugin and http connections
not being stubbed out correctly. This patch ensures do_request is
stubbed out prior to the tests execution; this should be enough
to prevent timeouts from occurring again. Stubbing out the call has
no effect on the coverage of the agent scheduler tests for the NEC
plugin.

Fixes bug #1201478

Change-Id: Iee3cb3cb3137cedcf97c707ea7fde9114b7264b6
neutron/tests/unit/nec/test_agent_scheduler.py