I had to try building three times before it succeeded. I believe the first two times were the same error:
Running org.kaazing.gateway.client.impl.ws.WebSocketIT
Oct 08, 2015 3:27:43 PM org.kaazing.gateway.client.transport.http.HttpRequestDelegateImpl$StreamReader run2
SEVERE: java.net.SocketException: Unexpected end of file from server
Oct 08, 2015 3:27:43 PM org.kaazing.gateway.client.transport.http.HttpRequestDelegateImpl$StreamReader run2
SEVERE: java.net.SocketException: Connection reset
Oct 08, 2015 3:27:43 PM org.kaazing.gateway.client.transport.http.HttpRequestDelegateImpl$StreamReader run
INFO: WebSocket upstream channel already closed
java.lang.IllegalStateException: WebSocket upstream channel already closed
at org.kaazing.gateway.client.impl.wseb.WebSocketEmulatedHandler$2.upstreamFailed(WebSocketEmulatedHandler.java:128)
at org.kaazing.gateway.client.impl.wseb.UpstreamHandlerImpl$3.errorOccurred(UpstreamHandlerImpl.java:125)
at org.kaazing.gateway.client.impl.http.HttpRequestTransportHandler$2.errorOccurred(HttpRequestTransportHandler.java:94)
at org.kaazing.gateway.client.impl.http.HttpRequestDelegateHandler$1.errorOccurred(HttpRequestDelegateHandler.java:133)
at org.kaazing.gateway.client.transport.http.HttpRequestDelegateImpl$StreamReader.run2(HttpRequestDelegateImpl.java:264)
at org.kaazing.gateway.client.transport.http.HttpRequestDelegateImpl$StreamReader.run(HttpRequestDelegateImpl.java:218)
at java.lang.Thread.run(Thread.java:745)
Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 5.211 sec <<< FAILURE! - in org.kaazing.gateway.client.impl.ws.WebSocketIT
clientShouldReceiveDataOverLongpollingRequest(org.kaazing.gateway.client.impl.ws.WebSocketIT) Time elapsed: 5.087 sec <<< FAILURE!
org.junit.ComparisonFailure: Specified behavior did not match expected:<...der "X-Sequence-No" [${wse:asString(sequence + 1)}
read [0x01 0x30 0x32 0xFF]
read [0x01 0x30 0x31 0xFF]
read closed
write status "200" "OK"
write version "HTTP/1.1"
write header content-length
write close]
> but was:<...der "X-Sequence-No" [[0x32]]
>
at org.junit.Assert.assertEquals(Assert.java:115)
at org.kaazing.k3po.junit.rules.SpecificationStatement.evaluate(SpecificationStatement.java:132)
at org.junit.rules.Verifier$1.evaluate(Verifier.java:35)
at org.junit.rules.RunRules.evaluate(RunRules.java:20)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
Results :
Failed tests:
WebSocketIT.clientShouldReceiveDataOverLongpollingRequest Specified behavior did not match expected:<...der "X-Sequence-No" [${wse:asString(sequence + 1)}
read [0x01 0x30 0x32 0xFF]
read [0x01 0x30 0x31 0xFF]
read closed
write status "200" "OK"
write version "HTTP/1.1"
write header content-length
write close]
> but was:<...der "X-Sequence-No" [[0x32]]
>
Tests run: 5, Failures: 1, Errors: 0, Skipped: 0