From ff37615bfda5e21d95a4294b427101ba661aa2d3 Mon Sep 17 00:00:00 2001 From: Ed Santiago Date: Tue, 9 May 2023 14:32:28 -0600 Subject: [PATCH] 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 --- test/e2e/systemd_activate_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/e2e/systemd_activate_test.go b/test/e2e/systemd_activate_test.go index 5cee3e677d..f6c9351c47 100644 --- a/test/e2e/systemd_activate_test.go +++ b/test/e2e/systemd_activate_test.go @@ -4,6 +4,7 @@ import ( "errors" "io/fs" "net" + "net/url" "os" "os/exec" "path/filepath" @@ -77,6 +78,7 @@ var _ = Describe("Systemd activate", func() { activateSession := testUtils.StartSystemExec(activate, systemdArgs) Expect(activateSession.Exited).ShouldNot(Receive(), "Failed to start podman service") + WaitForService(url.URL{Scheme: "tcp", Host: addr}) defer activateSession.Signal(syscall.SIGTERM) // Create custom functions for running podman and