diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-06-22 18:10:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-22 18:10:06 +0200 |
commit | 11dd5f51b6c2a644dc4793b8f18ec541593a30ee (patch) | |
tree | dc313bb205da5e7c582a299439384f55e17efe61 /test/e2e | |
parent | 78b205c8c9d2c06e563174b38039b0fcb2f6933e (diff) | |
parent | 173d08637411629a271ab162d917f6ccee438dae (diff) | |
download | podman-11dd5f51b6c2a644dc4793b8f18ec541593a30ee.tar.gz podman-11dd5f51b6c2a644dc4793b8f18ec541593a30ee.tar.bz2 podman-11dd5f51b6c2a644dc4793b8f18ec541593a30ee.zip |
Merge pull request #6702 from jgallucci32/follow-logs-poll
Stop following logs using timers
Diffstat (limited to 'test/e2e')
-rw-r--r-- | test/e2e/logs_test.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/e2e/logs_test.go b/test/e2e/logs_test.go index a4a59acb2..cf69cbd3e 100644 --- a/test/e2e/logs_test.go +++ b/test/e2e/logs_test.go @@ -311,4 +311,16 @@ var _ = Describe("Podman logs", func() { logs.WaitWithDefaultTimeout() Expect(logs).To(Not(Exit(0))) }) + + It("follow output stopped container", func() { + containerName := "logs-f" + + logc := podmanTest.Podman([]string{"run", "--name", containerName, "-d", ALPINE, "true"}) + logc.WaitWithDefaultTimeout() + Expect(logc).To(Exit(0)) + + results := podmanTest.Podman([]string{"logs", "-f", containerName}) + results.WaitWithDefaultTimeout() + Expect(results).To(Exit(0)) + }) }) |