Skip to content

Commit a8b3257

Browse files
authored
Get async tests passing again (#1308)
Now that wasip3-prototyping is all updated make a few minor adjustments in tests to get things passing.
1 parent 98772fb commit a8b3257

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ jobs:
118118
# bit unstable as the async foundations are shifting over time but this at
119119
# least enables testing async things in this repository more easily.
120120
async:
121-
name: Test Async
121+
name: Test Async (allowed to fail)
122122
runs-on: ubuntu-latest
123123
steps:
124124
- uses: actions/checkout@v4

tests/runtime-async/async/future-cancel-read/runner.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,7 @@ int main() {
2727
test_future_u32_t data_reader = test_future_u32_new(&data_writer);
2828
test_future_void_writer_t signal_writer;
2929
test_future_void_t signal_reader = test_future_void_new(&signal_writer);
30-
test_async_start_read_then_cancel_args_t args;
31-
args.data = data_reader;
32-
args.signal = signal_reader;
33-
runner_subtask_status_t status = test_async_start_read_then_cancel(&args);
30+
runner_subtask_status_t status = test_async_start_read_then_cancel(data_reader, signal_reader);
3431
assert(RUNNER_SUBTASK_STATE(status) == RUNNER_SUBTASK_STARTED);
3532
runner_subtask_t task = RUNNER_SUBTASK_HANDLE(status);
3633

tests/runtime-async/async/simple-stream-payload/runner.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ int main() {
4343
runner_waitable_set_wait(set, &event);
4444
assert(event.event == RUNNER_EVENT_STREAM_WRITE);
4545
assert(event.waitable == writer);
46-
assert(RUNNER_WAITABLE_STATE(event.code) == RUNNER_WAITABLE_COMPLETED);
46+
assert(RUNNER_WAITABLE_STATE(event.code) == RUNNER_WAITABLE_CLOSED);
4747
assert(RUNNER_WAITABLE_COUNT(event.code) == 2);
4848

4949
// clean up the writer

0 commit comments

Comments
 (0)