We raised $3M for agent-native runners

Use a loopback address for local mock servers

Point tests at 127.0.0.1 where resolving localhost is slow.

How Stripe used this technique

Read what Stripe changed and follow the original sources.

Use a loopback address for local mock servers

Stripe Python points its tests at 127.0.0.1 for the local mock server on Windows runners, where localhost resolution is slow, and keeps localhost elsewhere.

Use it when
Local integration tests repeatedly resolve localhost on a slow platform.
Before applying it
Bind the mock server and its clients to the same address, and keep dedicated hostname, IPv6 and DNS tests where the product needs them.

Company Playbooks