summaryrefslogtreecommitdiffstats
path: root/tests/unit/benchmark/scenarios/networking/test_nstat.py
diff options
context:
space:
mode:
authorRoss Brattain <ross.b.brattain@intel.com>2017-07-13 22:03:35 -0700
committerRoss Brattain <ross.b.brattain@intel.com>2017-07-17 03:56:46 +0000
commit8f93e4c0602a315a154005bc0de6b58830d7a733 (patch)
tree54100bb94ea4fef4b7036643e84c87f5f1cdd471 /tests/unit/benchmark/scenarios/networking/test_nstat.py
parent33b439426dac57bc8448df1bb485138550235740 (diff)
test_nstat: speedup unittests, sleep for 0 seconds
Change-Id: I3f961e26fb045ea7501dc3a5b630b3ef94fec3ee Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Diffstat (limited to 'tests/unit/benchmark/scenarios/networking/test_nstat.py')
-rw-r--r--tests/unit/benchmark/scenarios/networking/test_nstat.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/benchmark/scenarios/networking/test_nstat.py b/tests/unit/benchmark/scenarios/networking/test_nstat.py
index d66e91790..fe44cfdf4 100644
--- a/tests/unit/benchmark/scenarios/networking/test_nstat.py
+++ b/tests/unit/benchmark/scenarios/networking/test_nstat.py
@@ -43,7 +43,7 @@ class NstatTestCase(unittest.TestCase):
def test_nstat_successful_no_sla(self, mock_ssh):
options = {
- "duration": 0.1
+ "duration": 0
}
args = {
"options": options,
@@ -67,7 +67,7 @@ class NstatTestCase(unittest.TestCase):
def test_nstat_successful_sla(self, mock_ssh):
options = {
- "duration": 0.1
+ "duration": 0
}
sla = {
"IP_datagram_error_rate": 0.1
@@ -95,7 +95,7 @@ class NstatTestCase(unittest.TestCase):
def test_nstat_unsuccessful_cmd_error(self, mock_ssh):
options = {
- "duration": 0.1
+ "duration": 0
}
sla = {
"IP_datagram_error_rate": 0.1