Skip to content

Commit c0a1489

Browse files
Fix unit tests
1 parent d46050a commit c0a1489

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: pkg/api/pod/util_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -4115,7 +4115,7 @@ func TestValidateAllowPodLifecycleSleepActionZeroValue(t *testing.T) {
41154115
{
41164116
name: "no lifecycle hooks",
41174117
podSpec: &api.PodSpec{},
4118-
expectAllowPodLifecycleSleepActionZeroValue: false,
4118+
expectAllowPodLifecycleSleepActionZeroValue: true,
41194119
},
41204120
{
41214121
name: "Prestop with non-zero second duration",
@@ -4132,7 +4132,7 @@ func TestValidateAllowPodLifecycleSleepActionZeroValue(t *testing.T) {
41324132
},
41334133
},
41344134
},
4135-
expectAllowPodLifecycleSleepActionZeroValue: false,
4135+
expectAllowPodLifecycleSleepActionZeroValue: true,
41364136
},
41374137
{
41384138
name: "PostStart with non-zero second duration",
@@ -4149,7 +4149,7 @@ func TestValidateAllowPodLifecycleSleepActionZeroValue(t *testing.T) {
41494149
},
41504150
},
41514151
},
4152-
expectAllowPodLifecycleSleepActionZeroValue: false,
4152+
expectAllowPodLifecycleSleepActionZeroValue: true,
41534153
},
41544154
{
41554155
name: "PreStop with zero seconds",

0 commit comments

Comments
 (0)