diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-03-19 23:49:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-19 23:49:44 +0100 |
commit | d927b43350a079c05f54e984838b851bcc2e5931 (patch) | |
tree | 70a7e573f71d0ff3d38b349774bc19fdc2989602 /pkg/bindings/test/pods_test.go | |
parent | aa6c8c2e55a7de14fb22f89af14d5c0636eecee0 (diff) | |
parent | d1c26af144b314f30cd69d42e33ab8cbacb080ff (diff) | |
download | podman-d927b43350a079c05f54e984838b851bcc2e5931.tar.gz podman-d927b43350a079c05f54e984838b851bcc2e5931.tar.bz2 podman-d927b43350a079c05f54e984838b851bcc2e5931.zip |
Merge pull request #5525 from baude/apiv2bindinglogs
apiv2 add bindings for logs|events
Diffstat (limited to 'pkg/bindings/test/pods_test.go')
-rw-r--r-- | pkg/bindings/test/pods_test.go | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/pkg/bindings/test/pods_test.go b/pkg/bindings/test/pods_test.go index f6c4d465d..fae1deca4 100644 --- a/pkg/bindings/test/pods_test.go +++ b/pkg/bindings/test/pods_test.go @@ -14,11 +14,10 @@ import ( var _ = Describe("Podman pods", func() { var ( - bt *bindingTest - s *gexec.Session - newpod string - err error - trueFlag bool = true + bt *bindingTest + s *gexec.Session + newpod string + err error ) BeforeEach(func() { @@ -57,7 +56,7 @@ var _ = Describe("Podman pods", func() { Expect(err).To(BeNil()) Expect(len(podSummary)).To(Equal(1)) // Adding an alpine container to the existing pod - _, err = bt.RunTopContainer(nil, &trueFlag, &newpod) + _, err = bt.RunTopContainer(nil, &bindings.PTrue, &newpod) Expect(err).To(BeNil()) podSummary, err = pods.List(bt.conn, nil) // Verify no errors. @@ -162,7 +161,7 @@ var _ = Describe("Podman pods", func() { Expect(code).To(BeNumerically("==", http.StatusNotFound)) // Adding an alpine container to the existing pod - _, err = bt.RunTopContainer(nil, &trueFlag, &newpod) + _, err = bt.RunTopContainer(nil, &bindings.PTrue, &newpod) Expect(err).To(BeNil()) // Binding needs to be modified to inspect the pod state. |