We raised $3M for agent-native runners

Complete the fixture before its timeout fires

Exercise the event that advances the test, so it stops waiting on the timer that rescues it.

How Uber used this technique

Read what Uber changed and follow the original sources.

Complete the fixture before its timeout fires

Cadence integration tests polled the foreign workflow's activity, so the next decision waited for the original activity to time out. The fix completes the original workflow's activity and updates expected event IDs for the extra ActivityStarted event. OPT19 is adapted to an accidental activity timeout.

The author identifies a 10-second wait in each affected test. Source

Use it when
Tests regularly spend a fixed interval waiting for an operation the fixture could complete immediately.
Before applying it
Confirm the test is about the completion path, keep dedicated timeout tests, and update event histories when completion adds events.

Company Playbooks