summaryrefslogtreecommitdiffstats
path: root/src/plugins/lb/test
diff options
context:
space:
mode:
authorsnaramre <snaramre@cisco.com>2019-10-16 22:36:47 +0000
committerOle Trøan <otroan@employees.org>2019-10-17 17:59:07 +0000
commitec44e263728e6795f77e1d16d6c07eeb093b4f34 (patch)
treed527bdcf7d4fca3de32f54615195bac2ec756cea /src/plugins/lb/test
parentb8d5e4058ea0ca88179e3f09d7e1f9bd4bb3bb91 (diff)
tests: python3 changes for load balancer test
Type: fix Change-Id: Id9a328158e7c4106a95928bf8ddceb7b9e73aa25 Signed-off-by: snaramre <snaramre@cisco.com>
Diffstat (limited to 'src/plugins/lb/test')
-rw-r--r--src/plugins/lb/test/test_lb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lb/test/test_lb.py b/src/plugins/lb/test/test_lb.py
index 4603bd10db8..fafb87b62d9 100644
--- a/src/plugins/lb/test/test_lb.py
+++ b/src/plugins/lb/test/test_lb.py
@@ -200,7 +200,7 @@ class TestLB(VppTestCase):
# This is just to roughly check that the balancing algorithm
# is not completely biased.
for asid in self.ass:
- if load[asid] < len(self.packets) / (len(self.ass) * 2):
+ if load[asid] < int(len(self.packets) / (len(self.ass) * 2)):
self.logger.error(
"ASS is not balanced: load[%d] = %d" % (asid, load[asid]))
raise Exception("Load Balancer algorithm is biased")