File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
lib/src/test/groovy/ua/naiksoftware/stomp Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ class ConnectionTests extends Configuration {
1818 def " connection must be opened" () {
1919 given :
2020 def client = Stomp . over(Stomp.ConnectionProvider . OKHTTP ,
21- ' http ://' + Configuration . testServer. getContainerIpAddress()
22- + ' :' + Configuration . testServer. getMappedPort(80 ) + ' /websocket' )
21+ ' ws ://' + Configuration . testServer. getContainerIpAddress()
22+ + ' :' + Configuration . testServer. getMappedPort(80 ) + ' /example-endpoint/ websocket' )
2323 client. connect()
2424 def testSubscriber = new TestSubscriber<LifecycleEvent > ()
2525
@@ -31,10 +31,10 @@ class ConnectionTests extends Configuration {
3131 if (event. exception) {
3232 event. exception. printStackTrace()
3333 }
34- assert event. type == LifecycleEvent.Type . OPENED
34+ return event. type == LifecycleEvent.Type . OPENED
3535 })
3636
37- // cleanup:
38- // client.disconnect()
37+ cleanup :
38+ client. disconnect()
3939 }
4040}
You can’t perform that action at this time.
0 commit comments