From d86e440d0bb7569fdd0f342ee563f94e0f6de5b5 Mon Sep 17 00:00:00 2001 From: Justin Alvarez Date: Fri, 12 Jan 2024 15:29:25 -0500 Subject: [PATCH] remove intermediate variable Signed-off-by: Justin Alvarez --- tests/logs.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/logs.go b/tests/logs.go index 40a8eed..62d72b5 100644 --- a/tests/logs.go +++ b/tests/logs.go @@ -99,9 +99,8 @@ func Logs(o *option.Option) { defer session.Kill() gomega.Expect(session.Out.Contents()).Should(gomega.BeEmpty()) command.Run(o, "exec", testContainerName, "sh", "-c", fmt.Sprintf("echo %s >> /proc/1/fd/1", newLog)) - output := strings.TrimSpace(string(session.Out.Contents())) // allow propagation time - gomega.Eventually(output). + gomega.Eventually(strings.TrimSpace(string(session.Out.Contents()))). WithTimeout(15 * time.Second). WithPolling(1 * time.Second). Should(gomega.Equal(newLog))