mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 05:36:12 +00:00
Fix unit tests
This commit is contained in:
@@ -4115,7 +4115,7 @@ func TestValidateAllowPodLifecycleSleepActionZeroValue(t *testing.T) {
|
||||
{
|
||||
name: "no lifecycle hooks",
|
||||
podSpec: &api.PodSpec{},
|
||||
expectAllowPodLifecycleSleepActionZeroValue: false,
|
||||
expectAllowPodLifecycleSleepActionZeroValue: true,
|
||||
},
|
||||
{
|
||||
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",
|
||||
@@ -4149,7 +4149,7 @@ func TestValidateAllowPodLifecycleSleepActionZeroValue(t *testing.T) {
|
||||
},
|
||||
},
|
||||
},
|
||||
expectAllowPodLifecycleSleepActionZeroValue: false,
|
||||
expectAllowPodLifecycleSleepActionZeroValue: true,
|
||||
},
|
||||
{
|
||||
name: "PreStop with zero seconds",
|
||||
|
Reference in New Issue
Block a user