mirror of
https://github.com/kubernetes/kubectl.git
synced 2026-04-09 02:46:22 -04:00
TestEvictDuringNamespaceTerminating intentionally exercises the retry path but only allows 10ms of total time. The production loop sleeps, refreshes state, and retries under that same deadline, so a single retry plus scheduler jitter is enough to exhaust the budget under -race or on busy CI workers. Keep the retry interval small so the test still covers the retry behavior, but widen the overall timeout so the assertion measures semantics instead of machine speed. Tested: go test -race ./staging/src/k8s.io/kubectl/pkg/drain -run TestEvictDuringNamespaceTerminating -count=100 Kubernetes-commit: 77f8d7c2a9571dd9a76ee1be8b234a4dddd2ad35 |
||
|---|---|---|
| .. | ||
| cordon.go | ||
| cordon_test.go | ||
| default.go | ||
| default_test.go | ||
| drain.go | ||
| drain_test.go | ||
| filter_test.go | ||
| filters.go | ||