Time Chamber

Move API time forward. Run the scenario again.

Test the moment after an API window closes without waiting out that interval. Advance simulated API time, see the next response and reset the modeled scenario for another run.

Time Chamber: an illustrative interactionIllustrative API episode: advance its clock, request again and reset. The application clock stays separate.TWO SEPARATE CLOCKSAPI episodeYour applicationAdvance +30sUnchangedReset the modeled API baseline

What this makes testable

Cross a time boundary

Exercise supported expiry, rate-limit windows and lifecycle timing at an explicit point in the API scenario.

Return to a baseline

Reset modeled episode state so a new run can start from its prepared API conditions.

Keep the clocks clear

Observe time-dependent API responses while your application’s timers and retry scheduler remain under their own control.

Time is an input to the scenario

Ask before the window. Ask after it.

An expiring resource or rate-limit window should be a testable API condition. Advance an episode across that boundary and inspect the response your application receives next.

Reset the modeled API baseline when you want another run. Your application clock and cleanup stay under your control.

  • Before advanceObserve the starting condition
  • Advance API timeRequest after the window
  • Reset episodeRestore modeled baseline

FAQ

Does it advance my application clock?

No. Browser timers, SDK retry schedulers, workers and database clocks are separate. Time Chamber moves the simulated clock used by supported API scenarios.

Can I run time at twice the speed?

The episode clock moves through explicit advances. Define the API interval you need to cross, advance it, then make the request that tests the resulting condition.

Does reset clean up my whole application?

Reset restores the modeled episode baseline, not your application’s state. Plan your own cleanup, and remember that opted-in creates can issue different resource IDs after a reset.

Resources

Go deeper on time chamber

Separate the two clocks

Plan an API-time experiment without mistaking it for an accelerated application timer.

Explore the worked case

Set up an episode

Follow the supported baseline, request, advance and reset workflow when you are ready.

Read the workflow

Inspect rate-limit timing

Understand how configured API time affects a supported rate-limit scenario.

Open the recovery guide

Test the next moment on purpose.

Choose a supported time boundary and a clear application assertion. Advance the API scenario, inspect the response and repeat from its baseline.