Skip to content

Commit c889db4

Browse files
author
Nickolay Savchenko
committed
Fix tests
1 parent 13f3c1b commit c889db4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/src/test/groovy/ua/naiksoftware/stomp/ConnectionTests.groovy

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)