jhugman / uniffi-bindgen-react-native

A uniffi bindings generator for calling Rust from react-native
Other
0 stars 0 forks source link

Adding a test around explicit library-specific cancellation #62

Closed jhugman closed 4 weeks ago

jhugman commented 1 month ago

According to The Big O of Code Reviews, this is a O(n) change.

This PR changes a test to catch an error.

I thought that we should be expecting a CancellationError, but after speaking to the uniffi-rs team, it turned out I should have been expecting an AsyncError.Timeout.

This test re-writes the test so Timeout is caught.