Skip to content

Introduce a MockExecutor for fully-isolated test cases

Ian Jackson requested to merge Diziet/arti:task4 into main

This is an alternative to MockSleepRuntime. Its benefits are:

  • Works properly with spawned tasks
  • Completely deterministic test execution (but can deliberately vary the scheduling to find bugs)
  • progress_until_stalled() facility to allow test cases to wait for tasks to complete their queued work

CC @nickm @gabi-250 who should probably both tell me if they like this API.

I'll let the bot assign code review...

Edited by Ian Jackson

Merge request reports

Loading