mirror of
https://github.com/tailscale/tailscale.git
synced 2026-07-20 21:23:07 +08:00
The test transferred only 64 KiB over loopback, which can complete within a single clock tick on fast CI machines, causing time.Since(start).Seconds() to return 0 and the "transfer_time_seconds_total > 0" assertion to fail. Increase the payload to 1 MiB so zero is genuinely implausible, and retry up to 3 additional times. If the metric is still zero after 4 total attempts, fail hard — at that size it means the timing logic is actually broken. Fixes #20213 Change-Id: I3fab510ce8c567506fea5ad803d35acf40d65700 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com> |
||
|---|---|---|
| .. | ||
| derp_test.go | ||
| derp.go | ||
| dns_example_test.go | ||
| dns_test.go | ||
| dns.go | ||
| histogram_test.go | ||
| histogram.go | ||
| http_test.go | ||
| http.go | ||
| prober_test.go | ||
| prober.go | ||
| status.go | ||
| status.html | ||
| tcp.go | ||
| tls_test.go | ||
| tls.go | ||
| tun_darwin.go | ||
| tun_default.go | ||
| tun_linux.go | ||