Skip to content

Commit 02996e0

Browse files
test(jco): update tests for future lift/lower, add list<u32, 3>
1 parent cb2f11e commit 02996e0

4 files changed

Lines changed: 519 additions & 458 deletions

File tree

crates/test-components/src/bin/future_lower.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ impl future_lower_async::Guest for Component {
126126
}
127127

128128
async fn read_future_value_example_resource_own(rx: FutureReader<resources::ExampleResource>) {
129-
let _ = rx.await;
130-
// All vals dropped at the end of this function
129+
let v = rx.await;
130+
drop(v); // we do an explicit drop to ensure the drop happens *before* this function returns
131131
}
132132

133133
async fn read_future_value_example_resource_own_attr(

crates/test-components/src/bin/stream_lower.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ impl stream_lower_async::Guest for Component {
155155
}
156156

157157
async fn read_stream_values_future_string(
158-
mut stream_rx: StreamReader<FutureReader<String>>,
158+
mut stream_rx: StreamReader<FutureReader<String>>,
159159
) -> Vec<String> {
160160
let mut vals = Vec::new();
161161
while let Some(fut_rx) = stream_rx.next().await {

0 commit comments

Comments
 (0)