-
-
Notifications
You must be signed in to change notification settings - Fork 828
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
core+tests: Socket testing and improvements #12262
Conversation
8b0bbec
to
713e3ee
Compare
mocket |
Darnit I saw that text and immediately scrolled down to comment mocket too. +1 for mocket. |
Sadly we're not the first ones to make this portmanteau: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work once again!
I think I'd quite like some utility stuff in the socket format, for texts/floats/common data types, so we don't need to write out everything in bytes. But that's a nit and can come at any time later.
This all looks great to me, thank you!
This is used to help to create/test socket.json files against real Flash Player to verify behavior.
Previously it used run which tries to run until completion, but we can't do that if we are testing socket behavior.
This improves socket latency. Sometimes the ping is better in Ruffle than in Flash Player!
Also use anyhow to remove some unwraps.
For some reason my IDE keeps adding random stuff :(
Also reduce float precision.
b96896d
to
021ee6a
Compare
Add support in SWF regression testing framework to mock a socket. Also some improvements to the general socket framework.
List of things left to do:
socket_mock
utility.Socket
now that the backend exists