aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBeno�t Ganne <bganne@cisco.com>2021-06-25 15:45:05 +0000
committerBenoît Ganne <bganne@cisco.com>2021-06-25 17:59:18 +0200
commit7816403eb2b539c259250ed82cd8367f74fec0e9 (patch)
tree8713cc122f5f89bff6d79dfe4e71001008ed9df7
parentc9ae8cfaccd75fbc2dc27bdebccdbd14fc0cb60c (diff)
stats: revert "add a retry mechanism in a symlink test"
This reverts commit d70777aa60a87001f323f3b226d7e5cee2cd23d8. Reason for revert: wrong fix Type: fix Change-Id: Ibff1b977eae8d2cc85888165ebf83c42eb661698 Signed-off-by: Benoît Ganne <bganne@cisco.com>
-rw-r--r--test/test_stats_client.py16
1 files changed, 1 insertions, 15 deletions
diff --git a/test/test_stats_client.py b/test/test_stats_client.py
index e5b6aa79386..7e17e2a1fdd 100644
--- a/test/test_stats_client.py
+++ b/test/test_stats_client.py
@@ -2,8 +2,6 @@
import unittest
import psutil
-import sys
-import six
from vpp_papi.vpp_stats import VPPStats
from framework import tag_fixme_vpp_workers
@@ -110,19 +108,7 @@ class StatsClientTestCase(VppTestCase):
# We wait for nodes symlinks to update (interfaces created/deleted).
# ... and packets to be sent
self.sleep(0.1)
- for _ in range(5):
- try:
- vectors = self.statistics.get_counter('/nodes/pg1-tx/vectors')
- if vectors[0] == 0:
- raise ValueError("Nodes counters are not up to date")
- break
- except:
- t, v, tb = sys.exc_info()
-
- self.sleep(0.1)
- continue
- else:
- six.reraise(t, v, tb)
+ vectors = self.statistics.get_counter('/nodes/pg1-tx/vectors')
self.assertEqual(tx[0]['bytes'] - tx_before_sending[0]['bytes'],
bytes_to_send)