X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Ftest_lb.py;h=fafb87b62d98eb6a6dcc00387830fb56526b6eb3;hb=4ab6ad136b62add35598f3c354231701b7c14c65;hp=4603bd10db8dcec48b53aea9fe4f2aba6f741c49;hpb=097fa66b986f06281f603767d321ab13ab6c88c3;p=vpp.git diff --git a/test/test_lb.py b/test/test_lb.py index 4603bd10db8..fafb87b62d9 100644 --- a/test/test_lb.py +++ b/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")