Hi Bhathiya,

> I'm trying to write some test cases with Sling. What I want is a
> transient
> sling launchpad. I read some documentation on Sling website and tried
> to
> run OsgiConsoleTest.java. I removed throw exception part and added a
> try-catch. When I run this, I expect it to run properly (tell me if I'm
> wrong), but however it doesn't. I get following error. Did I miss
> something? Can someone please help me with it?


Your sling instance is running on port 8080 but the test tries to use port 8765.

> 10.07.2012 19:53:59.439 *INFO* [main] HTTP server port: 8080
> org.apache.http.conn.HttpHostConnectException: Connection to
> http://localhost:8765 refused

Robert

Reply via email to