Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ernoaapa committed Dec 19, 2018
1 parent 0a074bd commit e5e442d
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions pkg/kubectl/conditions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,25 @@ import (

func TestIsInitContainersReady(t *testing.T) {
pod := &apiv1.Pod{
Spec: apiv1.PodSpec{
InitContainers: []apiv1.Container{
{
Name: "sync-init",
Image: "ernoaapa/sshd-rsync",
},
},
},
Status: apiv1.PodStatus{
Phase: "Pending",
Conditions: []apiv1.PodCondition{
{
Type: apiv1.PodScheduled,
Status: apiv1.ConditionFalse,
Status: apiv1.ConditionTrue,
},
{
Type: apiv1.PodReady,
Status: apiv1.ConditionFalse,
},
{
Type: apiv1.PodScheduled,
Status: apiv1.ConditionTrue,
},
},
InitContainerStatuses: []apiv1.ContainerStatus{
{
Expand Down

0 comments on commit e5e442d

Please sign in to comment.