/badnet

Simulating bad networks without injecting net.Conn

Primary LanguageGoApache License 2.0Apache-2.0

badnet

badnet is a lightweight TCP proxy that sits in the middle of your tests and what they're trying to connect to. badnet sits outside of your application or tests to help simulate real network failures without modifying application code.

  1. Setup a proxy
  2. Connect your application
  3. Run typical tests

Future Ideas

  • Add channel / helpers to modify proxy behavior in the middle of an integration test

Related