mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 20:17:41 +00:00
Cleanup unnecessary renames of variable t
Change-Id: Idf4d0ed7e09cf14323567381de158041236680b0
This commit is contained in:
parent
c9b01dd977
commit
c84b5b0a99
@ -466,8 +466,9 @@ func updateDS(t *testing.T, dsClient appstyped.DaemonSetInterface, dsName string
|
|||||||
|
|
||||||
func forEachStrategy(t *testing.T, tf func(t *testing.T, strategy *apps.DaemonSetUpdateStrategy)) {
|
func forEachStrategy(t *testing.T, tf func(t *testing.T, strategy *apps.DaemonSetUpdateStrategy)) {
|
||||||
for _, strategy := range updateStrategies() {
|
for _, strategy := range updateStrategies() {
|
||||||
t.Run(fmt.Sprintf("%s_%s", t.Name(), strategy.Type),
|
t.Run(string(strategy.Type), func(t *testing.T) {
|
||||||
func(tt *testing.T) { tf(tt, strategy) })
|
tf(t, strategy)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -536,8 +537,8 @@ func TestSimpleDaemonSetLaunchesPods(t *testing.T) {
|
|||||||
|
|
||||||
func TestSimpleDaemonSetRestartsPodsOnTerminalPhase(t *testing.T) {
|
func TestSimpleDaemonSetRestartsPodsOnTerminalPhase(t *testing.T) {
|
||||||
for _, podPhase := range []v1.PodPhase{v1.PodSucceeded, v1.PodFailed} {
|
for _, podPhase := range []v1.PodPhase{v1.PodSucceeded, v1.PodFailed} {
|
||||||
t.Run(string(podPhase), func(tt *testing.T) {
|
t.Run(string(podPhase), func(t *testing.T) {
|
||||||
forEachStrategy(tt, func(t *testing.T, strategy *apps.DaemonSetUpdateStrategy) {
|
forEachStrategy(t, func(t *testing.T, strategy *apps.DaemonSetUpdateStrategy) {
|
||||||
ctx, closeFn, dc, informers, clientset := setup(t)
|
ctx, closeFn, dc, informers, clientset := setup(t)
|
||||||
defer closeFn()
|
defer closeFn()
|
||||||
ns := framework.CreateNamespaceOrDie(clientset, "daemonset-restart-terminal-pod-test", t)
|
ns := framework.CreateNamespaceOrDie(clientset, "daemonset-restart-terminal-pod-test", t)
|
||||||
|
Loading…
Reference in New Issue
Block a user