dfinity / cycles-ledger

The cycles ledger is a global ledger canister that enables principal IDs to hold cycles.
Apache License 2.0
8 stars 5 forks source link

chore: switch to `tokio::test` for the `test_icrc1_test_suite` #105

Closed MarioDfinity closed 8 months ago

MarioDfinity commented 8 months ago

The current test_icrc1_test_suite implementation uses FutureExt's now_or_never to deal with async code. The issue with that is that in case of timeout you get an unwrap error instead of a timeout. This PR changes that by making the test async and using tokio::test macro.