Synchronous testing runs an asynchronous operation in synchronous mode when completion timing is not what the test is checking. The test waits for the operation to finish before checking its result. section 21.4.3
A time-service stub
A stub time service can fire time-change events immediately during a time-shift step, letting the test check the result without waiting for asynchronous behavior. section 21.4.3
Before choosing this approach, weigh its convenience against what synchronous execution may hide:
- It can simplify a test when asynchronous timing is incidental. section 21.4.3
- It may change system behavior and miss issues such as thread-safety problems, creating false positives. section 21.4.3 section 21.5

