diff options
| author | Dániel Buga <[email protected]> | 2024-12-17 18:09:51 +0100 |
|---|---|---|
| committer | Dániel Buga <[email protected]> | 2024-12-17 18:09:51 +0100 |
| commit | b51bd9ad040754728142df9991763b4672c31ecd (patch) | |
| tree | 3effdd9d1a2cbd7a802bdc0c364aa621b079e36e | |
| parent | 8fd08b1e97533c7526bb4937770060d18bb37410 (diff) | |
Update tests
| -rw-r--r-- | embassy-executor/tests/test.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/embassy-executor/tests/test.rs b/embassy-executor/tests/test.rs index 78c49c071..d8c5a6ae3 100644 --- a/embassy-executor/tests/test.rs +++ b/embassy-executor/tests/test.rs | |||
| @@ -69,6 +69,7 @@ fn executor_task() { | |||
| 69 | &[ | 69 | &[ |
| 70 | "pend", // spawning a task pends the executor | 70 | "pend", // spawning a task pends the executor |
| 71 | "poll task1", // poll only once. | 71 | "poll task1", // poll only once. |
| 72 | "pend", // task is done, wakes itself to exit | ||
| 72 | ] | 73 | ] |
| 73 | ) | 74 | ) |
| 74 | } | 75 | } |
| @@ -179,6 +180,7 @@ fn waking_after_completion_does_not_poll() { | |||
| 179 | "pend", // manual wake, single pend for two wakes | 180 | "pend", // manual wake, single pend for two wakes |
| 180 | "pend", // respawning a task pends the executor | 181 | "pend", // respawning a task pends the executor |
| 181 | "poll task1", // | 182 | "poll task1", // |
| 183 | "pend", // task is done, wakes itself to exit | ||
| 182 | ] | 184 | ] |
| 183 | ) | 185 | ) |
| 184 | } | 186 | } |
| @@ -266,6 +268,7 @@ fn waking_with_old_waker_after_respawn() { | |||
| 266 | "yield_now", // | 268 | "yield_now", // |
| 267 | "pend", // manual wake, gets cleared by poll | 269 | "pend", // manual wake, gets cleared by poll |
| 268 | "poll task1", // | 270 | "poll task1", // |
| 271 | "pend", // task is done, wakes itself to exit | ||
| 269 | ] | 272 | ] |
| 270 | ); | 273 | ); |
| 271 | } | 274 | } |
