[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - timeToSleep in management tests

timfox do-not-reply at jboss.com
Sat Dec 20 12:37:56 EST 2008


I've removed these kind of sleeps


  |       // wiat a little bit to give time for the message to be handled by the server
  |       Thread.sleep(timeToSleep);
  | 

Since it's non deterministic and sometimes the tests would fail.

A much simpler way to ensure the message gets to the server is just to set blocking sends to true on the connection factory.


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4197807#4197807

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4197807



More information about the jboss-dev-forums mailing list