From: Ian C. <ian...@gm...> - 2018-03-21 14:43:30
|
Hi Ronald, I just wanted to check in and see if there was any additional information I could provide to assist with diagnosing this issue. Many thanks, Ian. On Sun, Mar 18, 2018 at 4:12 PM Ian Clarke <ian...@gm...> wrote: > Thanks for the quick response. Here is the relevant test: > > > https://github.com/kwebio/core/blob/spek/src/test/kotlin/io/kweb/KwebSpec.kt > > The server is started with this line: > > val kweb = Kweb(port = 12243) { > It serves a HTML page, with some JavaScript that immediately opens a > websocket back to the server. In this simple test the websocket isn't > actually used for sending/receiving any message. > > I use a simple function to create the WebClient and handle some setup, it > is here: > > https://github.com/kwebio/core/blob/spek/src/test/kotlin/io/kweb/util.kt > > I'm using htmlunit version 2.29 - which I believe is the latest. > > Please don't hesitate to let me know if you have any questions. > > Many thanks, > > Ian. > > Ian Clarke > http://blog.locut.us/ > > On Sun, Mar 18, 2018 at 2:35 PM Ronald Brill <rb...@rb...> wrote: > >> Hi Ian, >> >> what version of HtmlUnit do you use and can you please provide some code >> to give me a chance to reproduce your problem. >> >> There was a bug in the past with a similar error message. >> https://sourceforge.net/p/htmlunit/bugs/1865/ >> >> RBRi >> >> On Sun, 18 Mar 2018 16:39:02 +0000 Ian Clarke wrote: >> > >> >I'm attempting to use HtmlUnit to test a web framework I'm writing that >> >relies on websockets. >> > >> >Everything seems to work, HTMLUnit connects to my webserver and retrieves >> >and verifies that a simple H1 element is present, however it then >> produces >> >this exception: >> >https://gist.github.com/sanity/4695c64196494d36e09cbb7a036125d3 >> > >> >After this my tests fail to terminate (I'm using Spek, a popular Kotlin >> >test framework), I've paused the vm and all I see is the main thread >> >"parked". >> > >> >I'm a bit lost about where to go next with this, would appreciate any >> >suggestions. >> > >> >Thanks, >> > >> >Ian. >> > >> >Ian Clarke >> >http://blog.locut.us/ >> >> -- > > Uprizer Labs LLC > > http://uprizer.com/ > -- Uprizer Labs LLC http://uprizer.com/ |