-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2980: Make crdt tests stable r=paulocsanz a=paulocsanz Since we used websockets the port had to be available when starting the test, causing a failure if for some reason it isn't. So we moved that logic from websockets to Streams and Sinks. - Abstract CRDT broadcast logic over a `Sink<Message>` and `Stream<Message>` instead of using WebSockets directly - Create a `Sink<Message>` and a `Stream<Message>` in tests from a tokio::broadcast channel pair - Create a `Sink<Vec<u8>>` and a `Stream<Vec<u8>>` in tests from the `Sink<Message>/Stream<Message>`, to properly integrate with y_sync test machinery - Create server and client structs over those sinks/streams to emulate the websocket ones Co-authored-by: Paulo Cabral <[email protected]>
- Loading branch information
Showing
4 changed files
with
364 additions
and
219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.