diff options
author | Jhon Honce <jhonce@redhat.com> | 2020-05-14 11:30:17 -0700 |
---|---|---|
committer | Jhon Honce <jhonce@redhat.com> | 2020-05-14 13:35:59 -0700 |
commit | f587fa3ba383c62690320ebc4dfbd8b9d68a73ac (patch) | |
tree | eefcf33959150d2f79d6ec431679b4dbdf46658e /pkg/bindings/test/attach_test.go | |
parent | 77dbfc753097d4b3a07c1382cb388e79515ffdb0 (diff) | |
download | podman-f587fa3ba383c62690320ebc4dfbd8b9d68a73ac.tar.gz podman-f587fa3ba383c62690320ebc4dfbd8b9d68a73ac.tar.bz2 podman-f587fa3ba383c62690320ebc4dfbd8b9d68a73ac.zip |
Make convenience boxed true/false easier to use
* changed PFalse to &false
* changed PTrue to &true
Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'pkg/bindings/test/attach_test.go')
-rw-r--r-- | pkg/bindings/test/attach_test.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkg/bindings/test/attach_test.go b/pkg/bindings/test/attach_test.go index 809e536ca..906bd2950 100644 --- a/pkg/bindings/test/attach_test.go +++ b/pkg/bindings/test/attach_test.go @@ -54,11 +54,12 @@ var _ = Describe("Podman containers attach", func() { go func() { defer GinkgoRecover() - err := containers.Attach(bt.conn, id, nil, &bindings.PTrue, &bindings.PTrue, nil, stdout, stderr) + err := containers.Attach(bt.conn, id, nil, bindings.PTrue, bindings.PTrue, nil, stdout, stderr) Expect(err).ShouldNot(HaveOccurred()) }() time.Sleep(5 * time.Second) + // First character/First line of top output Expect(stdout.String()).Should(ContainSubstring("Mem: ")) }) @@ -97,7 +98,7 @@ var _ = Describe("Podman containers attach", func() { go func() { defer GinkgoRecover() - err := containers.Attach(bt.conn, ctnr.ID, nil, &bindings.PFalse, &bindings.PTrue, stdin, stdout, stderr) + err := containers.Attach(bt.conn, ctnr.ID, nil, bindings.PFalse, bindings.PTrue, stdin, stdout, stderr) Expect(err).ShouldNot(HaveOccurred()) }() |