| 1 | package agent |
| 2 | |
| 3 | import ( |
| 4 | "context" |
| 5 | "testing" |
| 6 | |
| 7 | "go.uber.org/goleak" |
| 8 | ) |
| 9 | |
| 10 | func TestMain(m *testing.M) { |
| 11 | // Stream body retries use multi-second backoff in production; collapse it |
| 12 | // in package tests so recovery suites stay deterministic and fast. |
| 13 | streamRetrySleep = func(ctx context.Context, _ int) bool { |
| 14 | return ctx.Err() == nil |
| 15 | } |
| 16 | goleak.VerifyTestMain(m) |
| 17 | } |
| 18 |