diff options
author | Matthew Heon <mheon@redhat.com> | 2019-04-23 13:48:08 -0400 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2019-04-24 12:51:41 -0400 |
commit | 90873b465b187e995bc3a436ef5fb1dc8072f8b9 (patch) | |
tree | c1c341580f58fd7ee1f22f900abb840831c7960d | |
parent | c3c2ba079d6a466236d8f1bbc9c6b0f6173dd408 (diff) | |
download | podman-90873b465b187e995bc3a436ef5fb1dc8072f8b9.tar.gz podman-90873b465b187e995bc3a436ef5fb1dc8072f8b9.tar.bz2 podman-90873b465b187e995bc3a436ef5fb1dc8072f8b9.zip |
Fix test compile
Signed-off-by: Matthew Heon <mheon@redhat.com>
-rw-r--r-- | test/e2e/stop_test.go | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/test/e2e/stop_test.go b/test/e2e/stop_test.go index 8f7bb2308..717eea441 100644 --- a/test/e2e/stop_test.go +++ b/test/e2e/stop_test.go @@ -50,7 +50,7 @@ var _ = Describe("Podman stop", func() { session.WaitWithDefaultTimeout() Expect(session.ExitCode()).To(Equal(0)) - finalCtrs := podmanTest.Podman([]string("ps", "-q")) + finalCtrs := podmanTest.Podman([]string{"ps", "-q"}) finalCtrs.WaitWithDefaultTimeout() Expect(finalCtrs.ExitCode()).To(Equal(0)) Expect(strings.TrimSpace(finalCtrs.OutputToString())).To(Equal("")) @@ -64,7 +64,7 @@ var _ = Describe("Podman stop", func() { session.WaitWithDefaultTimeout() Expect(session.ExitCode()).To(Equal(0)) - finalCtrs := podmanTest.Podman([]string("ps", "-q")) + finalCtrs := podmanTest.Podman([]string{"ps", "-q"}) finalCtrs.WaitWithDefaultTimeout() Expect(finalCtrs.ExitCode()).To(Equal(0)) Expect(strings.TrimSpace(finalCtrs.OutputToString())).To(Equal("")) @@ -78,7 +78,7 @@ var _ = Describe("Podman stop", func() { session.WaitWithDefaultTimeout() Expect(session.ExitCode()).To(Equal(0)) - finalCtrs := podmanTest.Podman([]string("ps", "-q")) + finalCtrs := podmanTest.Podman([]string{"ps", "-q"}) finalCtrs.WaitWithDefaultTimeout() Expect(finalCtrs.ExitCode()).To(Equal(0)) Expect(strings.TrimSpace(finalCtrs.OutputToString())).To(Equal("")) @@ -97,7 +97,7 @@ var _ = Describe("Podman stop", func() { session3.WaitWithDefaultTimeout() Expect(session3.ExitCode()).To(Equal(0)) - finalCtrs := podmanTest.Podman([]string("ps", "-q")) + finalCtrs := podmanTest.Podman([]string{"ps", "-q"}) finalCtrs.WaitWithDefaultTimeout() Expect(finalCtrs.ExitCode()).To(Equal(0)) Expect(strings.TrimSpace(finalCtrs.OutputToString())).To(Equal("")) @@ -127,7 +127,7 @@ var _ = Describe("Podman stop", func() { Expect(output).To(ContainSubstring(cid2)) Expect(output).To(ContainSubstring(cid3)) - finalCtrs := podmanTest.Podman([]string("ps", "-q")) + finalCtrs := podmanTest.Podman([]string{"ps", "-q"}) finalCtrs.WaitWithDefaultTimeout() Expect(finalCtrs.ExitCode()).To(Equal(0)) Expect(strings.TrimSpace(finalCtrs.OutputToString())).To(Equal("")) @@ -145,7 +145,7 @@ var _ = Describe("Podman stop", func() { output := session.OutputToString() Expect(output).To(ContainSubstring(cid1)) - finalCtrs := podmanTest.Podman([]string("ps", "-q")) + finalCtrs := podmanTest.Podman([]string{"ps", "-q"}) finalCtrs.WaitWithDefaultTimeout() Expect(finalCtrs.ExitCode()).To(Equal(0)) Expect(strings.TrimSpace(finalCtrs.OutputToString())).To(Equal("")) @@ -163,7 +163,7 @@ var _ = Describe("Podman stop", func() { output := session.OutputToString() Expect(output).To(ContainSubstring(cid1)) - finalCtrs := podmanTest.Podman([]string("ps", "-q")) + finalCtrs := podmanTest.Podman([]string{"ps", "-q"}) finalCtrs.WaitWithDefaultTimeout() Expect(finalCtrs.ExitCode()).To(Equal(0)) Expect(strings.TrimSpace(finalCtrs.OutputToString())).To(Equal("")) @@ -176,7 +176,7 @@ var _ = Describe("Podman stop", func() { session = podmanTest.Podman([]string{"stop", "-l", "-t", "1"}) session.WaitWithDefaultTimeout() Expect(session.ExitCode()).To(Equal(0)) - finalCtrs := podmanTest.Podman([]string("ps", "-q")) + finalCtrs := podmanTest.Podman([]string{"ps", "-q"}) finalCtrs.WaitWithDefaultTimeout() Expect(finalCtrs.ExitCode()).To(Equal(0)) Expect(strings.TrimSpace(finalCtrs.OutputToString())).To(Equal("")) @@ -186,16 +186,16 @@ var _ = Describe("Podman stop", func() { session := podmanTest.RunTopContainer("test1") session.WaitWithDefaultTimeout() Expect(session.ExitCode()).To(Equal(0)) - session2 := podmanTest.RunTopContainer("test1") + session2 := podmanTest.RunTopContainer("test2") session2.WaitWithDefaultTimeout() Expect(session2.ExitCode()).To(Equal(0)) - session3 := podmanTest.Podman([]string("stop", "-l", "-t", "1")) + session3 := podmanTest.Podman([]string{"stop", "-l", "-t", "1"}) session3.WaitWithDefaultTimeout() Expect(session3.ExitCode()).To(Equal(0)) - session4 := podmanTest.Podman([]string("stop", "-a", "-t", "1")) + session4 := podmanTest.Podman([]string{"stop", "-a", "-t", "1"}) session4.WaitWithDefaultTimeout() Expect(session4.ExitCode()).To(Equal(0)) - finalCtrs := podmanTest.Podman([]string("ps", "-q")) + finalCtrs := podmanTest.Podman([]string{"ps", "-q"}) finalCtrs.WaitWithDefaultTimeout() Expect(finalCtrs.ExitCode()).To(Equal(0)) Expect(strings.TrimSpace(finalCtrs.OutputToString())).To(Equal("")) @@ -208,10 +208,10 @@ var _ = Describe("Podman stop", func() { session2 := podmanTest.Podman([]string{"create", ALPINE, "/bin/sh"}) session2.WaitWithDefaultTimeout() Expect(session2.ExitCode()).To(Equal(0)) - session3 := podmanTest.Podman([]string("stop", "-a", "-t", "1")) + session3 := podmanTest.Podman([]string{"stop", "-a", "-t", "1"}) session3.WaitWithDefaultTimeout() Expect(session3.ExitCode()).To(Equal(0)) - finalCtrs := podmanTest.Podman([]string("ps", "-q")) + finalCtrs := podmanTest.Podman([]string{"ps", "-q"}) finalCtrs.WaitWithDefaultTimeout() Expect(finalCtrs.ExitCode()).To(Equal(0)) Expect(strings.TrimSpace(finalCtrs.OutputToString())).To(Equal("")) |