diff options
author | Volodymyr Mytnyk <volodymyrx.mytnyk@intel.com> | 2019-02-06 16:32:50 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2019-02-06 16:32:50 +0000 |
commit | 88c5dda9712afc71742b164905f21cfff45926fa (patch) | |
tree | 2139e77314c397410b12ff7ea216b03d3d16421a /yardstick/tests/unit/network_services/traffic_profile/test_prox_profile.py | |
parent | 628e26a7516e4cf8b7648ad81c35695dba896536 (diff) | |
parent | 1342ab2acfbdeb39fd7aaeda7455ba6c16ad9095 (diff) |
Merge "Mock time.sleep in slow tests"
Diffstat (limited to 'yardstick/tests/unit/network_services/traffic_profile/test_prox_profile.py')
-rw-r--r-- | yardstick/tests/unit/network_services/traffic_profile/test_prox_profile.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/yardstick/tests/unit/network_services/traffic_profile/test_prox_profile.py b/yardstick/tests/unit/network_services/traffic_profile/test_prox_profile.py index 11bee03a4..2660d4134 100644 --- a/yardstick/tests/unit/network_services/traffic_profile/test_prox_profile.py +++ b/yardstick/tests/unit/network_services/traffic_profile/test_prox_profile.py @@ -12,6 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # +import time import unittest import mock @@ -78,7 +79,8 @@ class TestProxProfile(unittest.TestCase): profile.init(queue) self.assertIs(profile.queue, queue) - def test_execute_traffic(self): + @mock.patch.object(time, 'sleep') + def test_execute_traffic(self, *args): packet_sizes = [ 10, 100, |