Skip to content

Commit

Permalink
Merge pull request #574 from fuweid/me-start-containerd-before-stats
Browse files Browse the repository at this point in the history
bugfix: start container before fetching metrics
  • Loading branch information
k8s-ci-robot authored Feb 17, 2020
2 parents 29f98b2 + 48a713c commit 82de8ee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/validate/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ var _ = framework.KubeDescribe("Container", func() {
By("create container")
containerID := framework.CreateDefaultContainer(rc, ic, podID, podConfig, "container-for-stats-")

By("start container")
startContainer(rc, containerID)

By("test container stats")
stats := listContainerStatsForID(rc, containerID)
Expect(stats.Attributes.Id).To(Equal(containerID))
Expand Down

0 comments on commit 82de8ee

Please sign in to comment.