Hi,

(please don't cross-post such questions)

On Sun, Aug 5, 2012 at 10:48 AM, Bhathiya Jayasekara
<[email protected]> wrote:
> ...When I run OsgiConsoleTest class as a junit test (in eclipse), I get
> this[1] error. But when I add LINE_X in [2], it works fine. Is there any
> known reason for this? I would like to know if there is any way to get this
> work without having a Thread.sleep(..)....

>From your stack trace it looks like you're starting the Sling server
every time you run that test from Eclipse, which is probably slow.

You might want to start the Sling instance to test separately, and
configure system properties so that tests run against it.

The comments in the pom at [1] should help you find out how that works.

-Bertrand

[1] 
http://svn.apache.org/repos/asf/sling/trunk/testing/samples/integration-tests/pom.xml

Reply via email to