mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 12:43:23 +00:00
Fix unit tests
This commit is contained in:
parent
d46050aa5d
commit
c0a1489bc8
@ -4115,7 +4115,7 @@ func TestValidateAllowPodLifecycleSleepActionZeroValue(t *testing.T) {
|
|||||||
{
|
{
|
||||||
name: "no lifecycle hooks",
|
name: "no lifecycle hooks",
|
||||||
podSpec: &api.PodSpec{},
|
podSpec: &api.PodSpec{},
|
||||||
expectAllowPodLifecycleSleepActionZeroValue: false,
|
expectAllowPodLifecycleSleepActionZeroValue: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Prestop with non-zero second duration",
|
name: "Prestop with non-zero second duration",
|
||||||
@ -4132,7 +4132,7 @@ func TestValidateAllowPodLifecycleSleepActionZeroValue(t *testing.T) {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
expectAllowPodLifecycleSleepActionZeroValue: false,
|
expectAllowPodLifecycleSleepActionZeroValue: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "PostStart with non-zero second duration",
|
name: "PostStart with non-zero second duration",
|
||||||
@ -4149,7 +4149,7 @@ func TestValidateAllowPodLifecycleSleepActionZeroValue(t *testing.T) {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
expectAllowPodLifecycleSleepActionZeroValue: false,
|
expectAllowPodLifecycleSleepActionZeroValue: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "PreStop with zero seconds",
|
name: "PreStop with zero seconds",
|
||||||
|
Loading…
Reference in New Issue
Block a user