diff options
author | Paul Vinciguerra <pvinci@vinciconsulting.com> | 2019-03-10 09:10:54 -0700 |
---|---|---|
committer | Ole Trøan <otroan@employees.org> | 2019-03-11 08:10:34 +0000 |
commit | 0f6602cb246894ea98253e16aae198094bf78694 (patch) | |
tree | 7fd7839f18ba701fe390308e17e035eb6850348b /test/test_bfd.py | |
parent | d3a9be2ca0b527bfeac808a822319e69e0d7fe76 (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/test_bfd.py')
-rw-r--r-- | test/test_bfd.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_bfd.py b/test/test_bfd.py index a450a335527..7b474228eb6 100644 --- a/test/test_bfd.py +++ b/test/test_bfd.py @@ -1065,7 +1065,7 @@ class BFD4TestCase(VppTestCase): / USEC_IN_SEC count = 0 for dummy in range(self.test_session.detect_mult * 2): - time.sleep(transmit_time) + self.sleep(transmit_time) self.test_session.send_packet(demand) try: p = wait_for_bfd_packet(self, timeout=0) @@ -1448,7 +1448,7 @@ class BFD4TestCase(VppTestCase): / USEC_IN_SEC count = 0 for dummy in range(self.test_session.detect_mult * 2): - time.sleep(transmit_time) + self.sleep(transmit_time) self.test_session.send_packet(demand) try: p = wait_for_bfd_packet(self, timeout=0) |