From: snaramre Date: Wed, 16 Oct 2019 22:36:47 +0000 (+0000) Subject: tests: python3 changes for load balancer test X-Git-Tag: v20.05-rc0~598 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=ec44e263728e6795f77e1d16d6c07eeb093b4f34;p=vpp.git tests: python3 changes for load balancer test Type: fix Change-Id: Id9a328158e7c4106a95928bf8ddceb7b9e73aa25 Signed-off-by: snaramre --- 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")