Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
makocchi-git committed Jul 11, 2019
1 parent 3c2e5d3 commit 9b326f4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkg/cmd/free_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ var testPods = []v1.Pod{
Name: "pod1",
Namespace: "default",
},
Status: v1.PodStatus{
Phase: v1.PodRunning,
},
Spec: v1.PodSpec{
NodeName: "node1",
Containers: []v1.Container{
Expand Down Expand Up @@ -391,7 +394,7 @@ func TestRun(t *testing.T) {
[]string{},
true,
[]string{
"node1 pod1 Unknown default container1 1 2 1K 2K",
"node1 pod1 Running default container1 1 2 1K 2K",
"",
},
nil,
Expand All @@ -410,7 +413,7 @@ func TestRun(t *testing.T) {
table: table.NewOutputTable(buffer),
list: test.list,
nodeClient: fakeNodeClient.CoreV1().Nodes(),
podClient: fakePodClient.CoreV1().Pods(""),
podClient: fakePodClient.CoreV1().Pods("default"),
header: "none",
}

Expand Down

0 comments on commit 9b326f4

Please sign in to comment.