mirror of
https://github.com/actions-runner-controller/actions-runner-controller.git
synced 2026-09-30 23:28:58 +02:00
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
20 lines
480 B
Go
20 lines
480 B
Go
package actionsgithubcom
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
// BenchmarkListenerPodSpecRequiresRecreation measures the listener pod drift
|
|
// check, which also runs on every AutoscalingListener reconcile.
|
|
func BenchmarkListenerPodSpecRequiresRecreation(b *testing.B) {
|
|
desired := desiredListenerPod()
|
|
live := livePodFromDesired(desired)
|
|
b.ReportAllocs()
|
|
b.ResetTimer()
|
|
for range b.N {
|
|
if listenerPodSpecRequiresRecreation(live, desired) {
|
|
b.Fatal("expected no recreation")
|
|
}
|
|
}
|
|
}
|