Mock time.sleep in slow tests 79/66779/3
authorEmma Foley <emma.l.foley@intel.com>
Tue, 29 Jan 2019 18:15:23 +0000 (18:15 +0000)
committerEmma Foley <emma.l.foley@intel.com>
Thu, 31 Jan 2019 12:09:32 +0000 (12:09 +0000)
commit1342ab2acfbdeb39fd7aaeda7455ba6c16ad9095
tree26570e7114080402d76bbf666c59817b2cf9c068
parentdfb534bbd7ab1454c1ad3b63d0b785e3050c1962
Mock time.sleep in slow tests

time.sleep was called in a number of classes which wasn't
mocked in the tests.
This accounted for 2.5 minutes of UT execution time.

The calls to time.sleep() have been mocked, and the test
execution time has been reduced.

JIRA: YARDSTICK-1595
Change-Id: I0a4f4962513cf8845471b074347601e33b35ef25
Signed-off-by: Emma Foley <emma.l.foley@intel.com>
yardstick/tests/unit/network_services/traffic_profile/test_prox_irq.py
yardstick/tests/unit/network_services/traffic_profile/test_prox_profile.py
yardstick/tests/unit/network_services/vnf_generic/vnf/test_prox_helpers.py
yardstick/tests/unit/network_services/vnf_generic/vnf/test_tg_rfc2544_trex.py