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,
|
ExitCode: 1,
|
||||||
},
|
},
|
||||||
isFailed: true,
|
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{
|
status: &kubecontainer.Status{
|
||||||
State: kubecontainer.ContainerStateUnknown,
|
State: kubecontainer.ContainerStateUnknown,
|
||||||
},
|
},
|
||||||
isFailed: true,
|
isFailed: true,
|
||||||
description: "Init container which in unknown state should return true",
|
description: "Init container in unknown state should return true",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
status: &kubecontainer.Status{
|
status: &kubecontainer.Status{
|
||||||
@ -74,21 +74,21 @@ func TestIsInitContainerFailed(t *testing.T) {
|
|||||||
ExitCode: 0,
|
ExitCode: 0,
|
||||||
},
|
},
|
||||||
isFailed: false,
|
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{
|
status: &kubecontainer.Status{
|
||||||
State: kubecontainer.ContainerStateRunning,
|
State: kubecontainer.ContainerStateRunning,
|
||||||
},
|
},
|
||||||
isFailed: false,
|
isFailed: false,
|
||||||
description: "Init container which in running state should return false",
|
description: "Init container in running state should return false",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
status: &kubecontainer.Status{
|
status: &kubecontainer.Status{
|
||||||
State: kubecontainer.ContainerStateCreated,
|
State: kubecontainer.ContainerStateCreated,
|
||||||
},
|
},
|
||||||
isFailed: false,
|
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 {
|
for i, test := range tests {
|
||||||
|
Loading…
Reference in New Issue
Block a user