You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tests from examples will fail with an exception: SupersonicChatSocketTest.testWebsocketChat:33 expected: <>> stu: hello world> but was: <>> stu: _ready_>
Build tool (ie. output of mvnw --version or gradlew --version)
Apache Maven 3.6.3
Additional information
It looks like the problem happens due to these:
Test class sends message "ready" when it opens connection
Application class(from the guide) resends this message
Tests class doesn't expect the message
Code of application class from quickstarts is a bit different, and replaces "ready" message with standard "User X joined" message. That's why the same test works for an application from quickstarts and fails for an application from the guide.
The text was updated successfully, but these errors were encountered:
Describe the bug
If code from examples on https://quarkus.io/guides/websockets is copied to a real project, then tests will fail with an exception.
Expected behavior
Examples should contain a working code
Actual behavior
Tests from examples will fail with an exception:
SupersonicChatSocketTest.testWebsocketChat:33 expected: <>> stu: hello world> but was: <>> stu: _ready_>
How to Reproduce?
Follow the guideon https://quarkus.io/guides/websockets. In particular:
mvn io.quarkus.platform:quarkus-maven-plugin:2.2.2.Final:create -DprojectGroupId=org.acme -DprojectArtifactId=websockets-quickstart -Dextensions="websockets" -DnoExamples
mvn clean verify
Output of
uname -a
orver
Linux 5.13.12-200.fc34.x86_64
Output of
java -version
11.0.12
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.1.1.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.6.3
Additional information
It looks like the problem happens due to these:
Code of application class from quickstarts is a bit different, and replaces "ready" message with standard "User X joined" message. That's why the same test works for an application from quickstarts and fails for an application from the guide.
The text was updated successfully, but these errors were encountered: