xmtp / libxmtp

MIT License
33 stars 13 forks source link

Fix Flaky Test #772

Open insipx opened 1 month ago

insipx commented 1 month ago

Is your feature request related to a problem?

https://github.com/xmtp/libxmtp/blob/75ee4aeb869d66340226893ff98d8daf188166ff/bindings_ffi/src/mls.rs#L1044

Test is flaking b/c the streamed messages are arriving too slow to one end of the stream. Calls to tokio::sleep are supposed to give time for messages to arrive but depending on architecture/system speed this varies.

Describe the solution to the problem

It would be great to use async-barrier for these tests in order to guarantee sync points and avoid flakiness

Describe the uses cases for the feature

No response

Additional details

No response