Fix unit tests

This commit is contained in:
Sreeram 2025-03-07 23:01:16 +05:30
parent d46050aa5d
commit c0a1489bc8

View File

@ -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",