From c0a1489bc86775363c2befa378e44016c92ab4b2 Mon Sep 17 00:00:00 2001 From: Sreeram Date: Fri, 7 Mar 2025 23:01:16 +0530 Subject: [PATCH] Fix unit tests --- pkg/api/pod/util_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/api/pod/util_test.go b/pkg/api/pod/util_test.go index 4ffb44b4ad0..df0f4eae8d5 100644 --- a/pkg/api/pod/util_test.go +++ b/pkg/api/pod/util_test.go @@ -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",