From f49cf7a7a5cf26832b2596bbbfaeb235fd78437d Mon Sep 17 00:00:00 2001 From: TheDiveO <6920158+thediveo@users.noreply.github.com> Date: Mon, 29 Aug 2022 18:15:59 +0200 Subject: [PATCH] gexec: allow more headroom for SIGABRT-related unit tests --- gexec/session_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gexec/session_test.go b/gexec/session_test.go index db6e79c09..d23c41674 100644 --- a/gexec/session_test.go +++ b/gexec/session_test.go @@ -130,7 +130,7 @@ var _ = Describe("Session", func() { Expect(err).ShouldNot(HaveOccurred()) session.Signal(syscall.SIGABRT) - Eventually(session).Should(Exit(128 + 6)) + Eventually(session).WithTimeout(5 * time.Second).Should(Exit(128 + 6)) }) It("should ignore sending a signal if the command did not start", func() { @@ -251,9 +251,9 @@ var _ = Describe("Session", func() { Signal(syscall.SIGABRT) - Eventually(session1).Should(Exit(128 + 6)) - Eventually(session2).Should(Exit(128 + 6)) - Eventually(session3).Should(Exit(128 + 6)) + Eventually(session1).WithTimeout(5 * time.Second).Should(Exit(128 + 6)) + Eventually(session2).WithTimeout(5 * time.Second).Should(Exit(128 + 6)) + Eventually(session3).WithTimeout(5 * time.Second).Should(Exit(128 + 6)) }) })