Skip to content

Commit

Permalink
Pass verbose flag when querying Container/Pod statuses.
Browse files Browse the repository at this point in the history
Signed-off-by: Nashwan Azhari <nazhari@cloudbasesolutions.com>
  • Loading branch information
aznashwan committed Mar 21, 2022
1 parent 52962e7 commit 04aeced
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/benchmark/container.go
Expand Up @@ -92,7 +92,7 @@ var _ = framework.KubeDescribe("Container", func() {

By("ContainerStatus")
lastStartTime = time.Now().UnixNano()
_, err = rc.ContainerStatus(containerID)
_, err = rc.ContainerStatus(containerID, true)
lastEndTime = time.Now().UnixNano()
durations[2] = lastEndTime - lastStartTime
framework.ExpectNoError(err, "failed to get Container status: %v", err)
Expand Down
2 changes: 1 addition & 1 deletion pkg/benchmark/pod.go
Expand Up @@ -92,7 +92,7 @@ var _ = framework.KubeDescribe("PodSandbox", func() {

By("Get Pod status")
lastStartTime = time.Now().UnixNano()
_, err = c.PodSandboxStatus(podID)
_, err = c.PodSandboxStatus(podID, true)
lastEndTime = time.Now().UnixNano()
durations[1] = lastEndTime - lastStartTime
framework.ExpectNoError(err, "failed to get PodStatus: %v", err)
Expand Down

0 comments on commit 04aeced

Please sign in to comment.