Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bytecodealliance
GitHub Repository: bytecodealliance/wasmtime
Path: blob/main/crates/misc/component-async-tests/tests/scenario/backpressure.rs
1693 views
1
use anyhow::Result;
2
3
use super::util::test_run;
4
5
// No-op function; we only test this by composing it in `async_backpressure_caller`
6
#[allow(
7
dead_code,
8
reason = "here only to make the `assert_test_exists` macro happy"
9
)]
10
pub fn async_backpressure_callee() {}
11
12
#[tokio::test]
13
pub async fn async_backpressure_caller() -> Result<()> {
14
test_run(&[
15
test_programs_artifacts::ASYNC_BACKPRESSURE_CALLER_COMPONENT,
16
test_programs_artifacts::ASYNC_BACKPRESSURE_CALLEE_COMPONENT,
17
])
18
.await
19
}
20
21