Skip to content

Commit 9af80ff

Browse files
committed
mctp-estack: Add StepExecutor for testing
This is a specialised executor to run async futures with more control. Can be used to partially run a future such as recv(), then adjust the clock before proceeding, when testing timeouts. Signed-off-by: Matt Johnston <[email protected]>
1 parent 06fcd49 commit 9af80ff

File tree

3 files changed

+693
-0
lines changed

3 files changed

+693
-0
lines changed

Cargo.lock

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mctp-estack/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,11 @@ uuid = { workspace = true }
2323
critical-section = { version = "1.2.0", features = ["std"] }
2424
embedded-io-adapters = { workspace = true }
2525
env_logger = { workspace = true }
26+
futures = "0.3"
2627
proptest = { workspace = true }
2728
smol = { workspace = true }
2829

30+
2931
[features]
3032
default = ["log"]
3133
std = ["mctp/std"]

0 commit comments

Comments
 (0)