matrix-org / complement-crypto

Apache License 2.0
6 stars 4 forks source link

Multiprocess doesn't compose well #70

Closed kegsay closed 2 weeks ago

kegsay commented 1 month ago

To make a multiprocess client, you call TestContext.MustCreateMultiprocessClient. However, this isn't called when you do the typical WithAliceAndBobSyncing, which always calls TestContext.MustCreateClient. This lack of composability should be fixed so MP tests can use WithAliceAndBobSyncing to avoid race conditions around keys.