wiggle: expand test suite

sync test: show the dummy executor will trap (rather than panic) when a
future inside it pends.

async test: show that the executor is hooked up to a future that pends
for a trivial amount of time.

this adds tokio to the dev-dependencies of wiggle, it shouldn't end up
increasing the build burden for the project as a whole since its already
a dev-dependency.
This commit is contained in:
Pat Hickey
2021-07-16 09:31:37 -07:00
parent 6f07c76c84
commit 4fa4a72328
5 changed files with 74 additions and 51 deletions

View File

@@ -27,6 +27,7 @@ maintenance = { status = "actively-developed" }
wiggle-test = { path = "test-helpers" }
anyhow = "1"
proptest = "1.0.0"
tokio = { version = "1", features = ["rt-multi-thread","time", "macros"] }
[[test]]
name = "wasmtime_async"