mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 07:20:13 +00:00
fix typo
Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
parent
20b3cd5198
commit
c1b94d27d9
@ -51,14 +51,14 @@ func TestIsInitContainerFailed(t *testing.T) {
|
||||
ExitCode: 1,
|
||||
},
|
||||
isFailed: true,
|
||||
description: "Init container which in exited state and non-zero exit code should return true",
|
||||
description: "Init container in exited state and non-zero exit code should return true",
|
||||
},
|
||||
{
|
||||
status: &kubecontainer.Status{
|
||||
State: kubecontainer.ContainerStateUnknown,
|
||||
},
|
||||
isFailed: true,
|
||||
description: "Init container which in unknown state should return true",
|
||||
description: "Init container in unknown state should return true",
|
||||
},
|
||||
{
|
||||
status: &kubecontainer.Status{
|
||||
@ -74,21 +74,21 @@ func TestIsInitContainerFailed(t *testing.T) {
|
||||
ExitCode: 0,
|
||||
},
|
||||
isFailed: false,
|
||||
description: "Init container which in exited state and zero exit code should return false",
|
||||
description: "Init container in exited state and zero exit code should return false",
|
||||
},
|
||||
{
|
||||
status: &kubecontainer.Status{
|
||||
State: kubecontainer.ContainerStateRunning,
|
||||
},
|
||||
isFailed: false,
|
||||
description: "Init container which in running state should return false",
|
||||
description: "Init container in running state should return false",
|
||||
},
|
||||
{
|
||||
status: &kubecontainer.Status{
|
||||
State: kubecontainer.ContainerStateCreated,
|
||||
},
|
||||
isFailed: false,
|
||||
description: "Init container which in created state should return false",
|
||||
description: "Init container in created state should return false",
|
||||
},
|
||||
}
|
||||
for i, test := range tests {
|
||||
|
Loading…
Reference in New Issue
Block a user