summaryrefslogtreecommitdiffstats
path: root/test/vpp_papi_provider.py
diff options
context:
space:
mode:
authorPaul Vinciguerra <pvinci@vinciconsulting.com>2019-03-10 09:10:54 -0700
committerOle Trøan <otroan@employees.org>2019-03-11 08:10:34 +0000
commit0f6602cb246894ea98253e16aae198094bf78694 (patch)
tree7fd7839f18ba701fe390308e17e035eb6850348b /test/vpp_papi_provider.py
parentd3a9be2ca0b527bfeac808a822319e69e0d7fe76 (diff)
Tests: fix time.sleep(0) # yield. Reduce sleep related log messages.
Reduce the incidence of: 20:04:23,606 unexpected time.sleep() result - slept for 2.187967e-03s instead of ~6.837845e-04s! Change-Id: Ic576fda7f75e571c9019111588a6a936ee2cf5c2 Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'test/vpp_papi_provider.py')
-rw-r--r--test/vpp_papi_provider.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/vpp_papi_provider.py b/test/vpp_papi_provider.py
index 37f63c060d4..fca57c37880 100644
--- a/test/vpp_papi_provider.py
+++ b/test/vpp_papi_provider.py
@@ -303,7 +303,7 @@ class VppPapiProvider(object):
self.test_class.logger.debug("Returning event %s:%s" %
(name, e))
return e
- time.sleep(0) # yield
+ self.test_class.sleep(0) # yield
raise Exception("Event did not occur within timeout")
def __call__(self, name, event):