Commit ef21863c authored by Andre Freyssinet's avatar Andre Freyssinet

Assertions adjustement.

parent 99238b2b
......@@ -173,8 +173,8 @@ public class AliasInQueueTest2 extends TestCase {
assertEquals("Should received all messages", nbmsg, list1.count + list2.count);
System.out.println(" -> [" + ((weight2 * nbmsg *90)/(weight1 + weight2))/100 + " - " + ((weight2 * nbmsg *110)/(weight1 + weight2))/100 + "]");
assertTrue("Queue1 >> Queue2", list1.count > (((weight2 * nbmsg *90)/(weight1 + weight2))/100));
assertTrue("Queue2 >> Queue1", list1.count < (((weight2 * nbmsg *110)/(weight1 + weight2))/100));
assertTrue("Queue1 >> Queue2", list1.count > (((weight2 * nbmsg *980)/(weight1 + weight2))/100));
assertTrue("Queue2 >> Queue1", list1.count < (((weight2 * nbmsg *120)/(weight1 + weight2))/100));
System.out.println((System.currentTimeMillis() - start) + " - queue1: " + list1.count + ", queue2: " + list2.count);
cnx1.close();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment