diff options
author | Adrian Reber <areber@redhat.com> | 2019-01-08 13:54:15 +0000 |
---|---|---|
committer | Adrian Reber <adrian@lisas.de> | 2019-01-09 07:34:57 +0100 |
commit | e11cbd7129b3cb06cd38a07adcd1fb42bdc61100 (patch) | |
tree | 590ffaad17a8a9d1a9bb673567561532924cf5b8 /test | |
parent | c9d63fe89d0a79b069b56249aaa4c168b47649c0 (diff) | |
download | podman-e11cbd7129b3cb06cd38a07adcd1fb42bdc61100.tar.gz podman-e11cbd7129b3cb06cd38a07adcd1fb42bdc61100.tar.bz2 podman-e11cbd7129b3cb06cd38a07adcd1fb42bdc61100.zip |
Enable checkpoint test with established TCP connections
Signed-off-by: Adrian Reber <areber@redhat.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/e2e/checkpoint_test.go | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/e2e/checkpoint_test.go b/test/e2e/checkpoint_test.go index 4e892d11c..894a519b1 100644 --- a/test/e2e/checkpoint_test.go +++ b/test/e2e/checkpoint_test.go @@ -199,14 +199,17 @@ var _ = Describe("Podman checkpoint", func() { }) It("podman checkpoint container with established tcp connections", func() { - Skip("Seems to not work (yet) in CI") podmanTest.RestoreArtifact(redis) - session := podmanTest.Podman([]string{"run", "-it", "--security-opt", "seccomp=unconfined", "--network", "host", "-d", redis}) + session := podmanTest.Podman([]string{"run", "-it", "--security-opt", "seccomp=unconfined", "-d", redis}) session.WaitWithDefaultTimeout() Expect(session.ExitCode()).To(Equal(0)) + IP := podmanTest.Podman([]string{"inspect", "-l", "--format={{.NetworkSettings.IPAddress}}"}) + IP.WaitWithDefaultTimeout() + Expect(IP.ExitCode()).To(Equal(0)) + // Open a network connection to the redis server - conn, err := net.Dial("tcp", "127.0.0.1:6379") + conn, err := net.Dial("tcp", IP.OutputToString()+":6379") if err != nil { os.Exit(1) } |