summaryrefslogtreecommitdiffhomepage
path: root/util/testenv
AgeCommit message (Collapse)AuthorFilesLines
2025-04-07nettest, *: add option to run HTTP tests with in-memory networkBrad Fitzpatrick1-0/+7
To avoid ephemeral port / TIME_WAIT exhaustion with high --count values, and to eventually detect leaked connections in tests. (Later the memory network will register a Cleanup on the TB to verify that everything's been shut down) Updates tailscale/corp#27636 Change-Id: Id06f1ae750d8719c5a75d871654574a8226d2733 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2025-04-06util/testenv: add func to report whether a testing.TB is in parallel modeBrad Fitzpatrick2-0/+52
For future in-memory network changes (#15558) to be able to be stricter and do automatic leak detection when it's safe to do so, in non-parallel tests. Updates tailscale/corp#27636 Change-Id: I50f03b16a3f92ce61a7ed88264b49d8c6628f638 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2023-08-08util/testenv: add new package to hold InTestMaisem Ali2-0/+39
Removes duplicated code. Updates #cleanup Signed-off-by: Maisem Ali <maisem@tailscale.com>