aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lb
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/lb')
-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")