Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

chore: Switch to tokio test macro for async function #191

Merged
merged 1 commit into from
May 17, 2023

Conversation

phated
Copy link
Contributor

@phated phated commented May 16, 2023

This switches to using the tokio::test macro to use tokio async test runner for any functions that rely on CRS and other async functions in the future.

Removing the tokio calls from functions will allow us to swap in other test runners that support async functions, such as wasm-bindgen-test for browser tests.

I also made the CRS pippenger test run in all targets by relying on the get_pippenger abstraction.

BEGIN_COMMIT_OVERRIDE
chore: Switch to tokio test macro for async functions (#191)
END_COMMIT_OVERRIDE

@TomAFrench
Copy link
Member

tbh, I'm inclined to rework/remove the does_not_panic test as it's a bit muddled on what it's trying to test. If it's testing the CRS then why are we creating a pippenger pointer? There doesn't seem to be any validation in bberg on the CRS when creating a pippenger object so it's not checking for garbage data.

//TODO check that p_points memory is properly free seems to be purely a pippenger concern.

@TomAFrench TomAFrench merged commit ac930d4 into acvm-0.12.0 May 17, 2023
@TomAFrench TomAFrench deleted the phated/tokio-test-macro branch May 17, 2023 05:17
@phated phated mentioned this pull request May 17, 2023
1 task
TomAFrench added a commit that referenced this pull request May 19, 2023
* feat!: update to target acvm-84b5d18d

* chore: update to use new black box solver interface

* use patch syntax

* update to latest changes

* feat!: update to acvm with non-homogeneous bb calls (#169)

* feat: update acvm

* feat!: updated acvm to latest master

* chore: update cargo toml

* Update src/barretenberg_structures.rs

Co-authored-by: Tom French <[email protected]>

---------

Co-authored-by: Tom French <[email protected]>

* fix bad rebase

* feat!: Update backend to rely on WitnessMap (#152)

Co-authored-by: Tom French <[email protected]>

* update acvm

* feat!: Implement CommonReferenceString trait (#139)

* chore!: Remove filesystem access and utilize async fetch with range requests

Co-authored-by: Tom French <[email protected]>

* chore: Switch to tokio test macro for async function (#191)

* chore: Remove `sled` & `tempfile` dev-dependencies (#190)

* chore: Remove sled & tempfile dev-dependencies

* chore: space out functions

---------

Co-authored-by: Tom French <[email protected]>

* chore: bump to crates.io release

* Update src/crs.rs

* chore: Remove streaming CRS download & indicator (#194)

* Update src/acvm_interop/common_reference_string.rs

* code review

---------

Co-authored-by: Blaine Bublitz <[email protected]>
Co-authored-by: Álvaro Rodríguez <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants