summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Brattain <ross.b.brattain@intel.com>2017-07-13 11:21:46 -0700
committerRoss Brattain <ross.b.brattain@intel.com>2017-08-01 15:06:22 +0000
commitdde516ea4da0d754a12c8435a91589820f48d141 (patch)
treee2a9a041c238c8e80d05b8bd8de00abfd4a02c31
parent90e5786f6e5bd3235e3d1c307782b8cae9d7b958 (diff)
test_env_action: speedup unittest, don't sleep
Change-Id: Ib662032e5133b8fead1c6858905bd13ca40f4dd6 Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
-rw-r--r--tests/unit/apiserver/resources/test_env_action.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/apiserver/resources/test_env_action.py b/tests/unit/apiserver/resources/test_env_action.py
index d61092dbc..31afa4862 100644
--- a/tests/unit/apiserver/resources/test_env_action.py
+++ b/tests/unit/apiserver/resources/test_env_action.py
@@ -21,13 +21,13 @@ class EnvTestCase(APITestCase):
data = {'action': 'create_grafana'}
resp = self._post(url, data)
- time.sleep(1)
+ time.sleep(0)
task_id = resp['result']['task_id']
url = '/yardstick/asynctask?task_id={}'.format(task_id)
resp = self._get(url)
- time.sleep(2)
+ time.sleep(0)
self.assertTrue(u'status' in resp)