Mark, let me know if you need some help since this is one of the task in my (almost eternal) TODO list. You can take a look at KnowledgeAgentEventListenerTest.java. Using KnowledgeAgentEventListener, you can be notified when the rule base is recreated and there is no need to wait for x seconds anymore.  <div>

Take a look at the waitUntilChangeSetApplied() method there.</div><div><br></div><div>Best,<br clear="all"><br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>Esteban Aliverti<br>- Developer @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com </a><br>

- Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a><br>
<br><br><div class="gmail_quote">On Sat, Dec 4, 2010 at 6:38 AM, Mark Proctor <span dir="ltr">&lt;<a href="mailto:mproctor@codehaus.org">mproctor@codehaus.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

The KnowlegeAgent tests have been fragile for a while, related to &quot;wait&quot;<br>
code and file issues, particularly on windows. Something has changed<br>
recently and now they aren&#39;t working on the linux hudson server either.<br>
<br>
So I&#39;m now in the process of refactoring the tests to make them more<br>
robust, and they will hopefully run faster too, as I&#39;ll use call backs<br>
when something has finished instead of waiting for X seconds in the hope<br>
that something has finished.<br>
<br>
Mark<br>
<br>
_______________________________________________<br>
rules-dev mailing list<br>
<a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
</blockquote></div><br></div>