mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-26 20:13:29 +00:00
remove dead code in test
This commit is contained in:
parent
79f9bfdc8e
commit
220d5c2e54
@ -206,10 +206,6 @@ func Test_loopConditionUntilContext_semantic(t *testing.T) {
|
||||
}
|
||||
|
||||
for _, test := range tests {
|
||||
for _, immediate := range []bool{true, false} {
|
||||
t.Run(fmt.Sprintf("immediate=%t", immediate), func(t *testing.T) {
|
||||
for _, sliding := range []bool{true, false} {
|
||||
t.Run(fmt.Sprintf("sliding=%t", sliding), func(t *testing.T) {
|
||||
t.Run(test.name, func(t *testing.T) {
|
||||
contextFn := test.context
|
||||
if contextFn == nil {
|
||||
@ -238,10 +234,6 @@ func Test_loopConditionUntilContext_semantic(t *testing.T) {
|
||||
t.Errorf("expected attempts count: %d but got: %d", test.attemptsExpected, attempts)
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user