mirror of
https://github.com/containers/podman.git
synced 2025-06-24 19:42:56 +08:00
e2e: stop podman.service test: wait for server
Another low-hanging fruit: test flake because podman-remote trying to contact a server that hadn't come up. Fixes: #17940 Signed-off-by: Ed Santiago <santiago@redhat.com>
This commit is contained in:
@ -4,6 +4,7 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"io/fs"
|
"io/fs"
|
||||||
"net"
|
"net"
|
||||||
|
"net/url"
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
@ -77,6 +78,7 @@ var _ = Describe("Systemd activate", func() {
|
|||||||
|
|
||||||
activateSession := testUtils.StartSystemExec(activate, systemdArgs)
|
activateSession := testUtils.StartSystemExec(activate, systemdArgs)
|
||||||
Expect(activateSession.Exited).ShouldNot(Receive(), "Failed to start podman service")
|
Expect(activateSession.Exited).ShouldNot(Receive(), "Failed to start podman service")
|
||||||
|
WaitForService(url.URL{Scheme: "tcp", Host: addr})
|
||||||
defer activateSession.Signal(syscall.SIGTERM)
|
defer activateSession.Signal(syscall.SIGTERM)
|
||||||
|
|
||||||
// Create custom functions for running podman and
|
// Create custom functions for running podman and
|
||||||
|
Reference in New Issue
Block a user