summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/e2e/stop_test.go28
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(""))